/* Furfrou's look is Combee's (../combee/public/styles.css): the same bar, cards,
   sheets and panels, in Furfrou's own colours (white, charcoal and the red of its eyes). */
:root {
  /* Furfrou's own colours: the white of its coat, the charcoal of its face and
     legs, and a burgundy (the red of its eyes, deepened) as the accent. */
  --bg: #f6f4ef;
  --surface: #ffffff;
  --text: #25232a;
  --muted: #68646f;
  --border: #e3dfd7;
  --accent: #8f1d2c; /* burgundy: a wine red, deep on light backgrounds (readable on white) */
  --accent-soft: #f6e4e6;
  --accent-fill: var(--accent); /* what is filled with the accent (buttons, badges) */
  --glow: #a8243a; /* the light behind Furfrou in the hero */
  --on-accent: #fff; /* text and icons over the accent */
  /* The gradient of the hero and the site panel: charcoal, so the white Furfrou stands out. */
  --g1: #55505c; --g2: #36323c; --g3: #1d1b21;
  --hero-ink: #25232a; /* text over white inside the hero */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath fill='none' stroke='%23fff' stroke-opacity='.09' stroke-width='1.2' d='M22 2l20 20-20 20L2 22z'/%3E%3Ccircle cx='22' cy='22' r='2.2' fill='%23fff' fill-opacity='.08'/%3E%3C/svg%3E");
  --gold: #d4a017; --silver: #8f97a8; --bronze: #b9743a;
  --danger: #b3261e;
  --ok: #16835a;
  --warn: #b45309;
  --info: #2563eb;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  /* Dark: near-black, neutral surfaces; the hero darker still, lit by the red;
     red text is lighter to read, and what is filled with red keeps a deep one. */
  :root:not([data-theme="light"]) {
    --bg: #0e0d10; --surface: #18171b; --text: #f4f2ed; --muted: #a29da8;
    --border: #2b2930; --accent: #d9596a; --accent-fill: #96202f; --accent-soft: #2b1418; --on-accent: #fff;
    --g1: #2f2c34; --g2: #1c1a20; --g3: #0f0e11; --glow: #b3263c;
    --danger: #ff8a7a; --ok: #4cc794; --warn: #f0b64e; --info: #7fa8ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0d10; --surface: #18171b; --text: #f4f2ed; --muted: #a29da8;
  --border: #2b2930; --accent: #d9596a; --accent-fill: #96202f; --accent-soft: #2b1418; --on-accent: #fff;
  --g1: #2f2c34; --g2: #1c1a20; --g3: #0f0e11; --glow: #b3263c;
  --danger: #ff8a7a; --ok: #4cc794; --warn: #f0b64e; --info: #7fa8ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* `hidden` must win over component display rules (label, .more, …). */
[hidden] { display: none !important; }
/* Nothing (like a hidden tooltip) may make the page scroll sideways. */
html, body { overflow-x: clip; }
/* Always keep room for the vertical scrollbar, so the centred layout (the
   navigation bar and the columns) doesn't shift between a page that scrolls
   and one that doesn't, e.g. a community's page and its admin panel. */
html { scrollbar-gutter: stable; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
h1 { font-size: 1.4rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 0 0 .7rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.page { max-width: 1000px; margin: 0 auto; padding: 20px 16px 40px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; margin-bottom: 16px; }
.page-head p { margin: .2rem 0 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 16px; }

/* Forms */
form.stack { display: grid; gap: .7rem; max-width: 420px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: .25rem; font-size: .85rem; color: var(--muted); }
input, select {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px; padding: .45rem .55rem; width: 100%;
}
button {
  font: inherit; cursor: pointer; border-radius: 6px; padding: .45rem .9rem;
  border: 1px solid var(--accent-fill); background: var(--accent-fill); color: var(--on-accent);
}
button.secondary { background: none; color: var(--accent); }
button.danger { background: none; border-color: var(--border); color: var(--danger); padding: .25rem .6rem; font-size: .85rem; }
button:disabled { opacity: .6; cursor: progress; }
.msg { margin: 0; font-size: .9rem; min-height: 1.3em; }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--ok); }
/* Admin panel tabs */
.tabs {
  display: flex; gap: 4px; margin-bottom: 16px; padding: 4px; overflow-x: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.tabs button {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .55rem .9rem; border: 0; border-radius: 9px; white-space: nowrap;
  font-weight: 500; color: var(--muted); background: none; transition: background-color .15s, color .15s;
}
.tabs button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button:hover { color: var(--text); background: var(--bg); }
.tabs button[aria-selected="true"] { color: var(--accent); background: var(--accent-soft); }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; }
.panel-head h2 { margin-bottom: .3rem; }
.placeholder { text-align: center; padding: 40px 16px; }
.placeholder svg { width: 40px; height: 40px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; opacity: .6; }
.placeholder h2 { margin: .6rem 0 .3rem; }
.placeholder p { margin: 0; }

/* "i" help badge with a tooltip on hover/focus. */
.info {
  position: relative; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 4px;
  border-radius: 50%; border: 1px solid var(--border); vertical-align: 1px; cursor: help;
  font: italic 700 11px/1 Georgia, "Times New Roman", serif; color: var(--muted); background: var(--bg);
}
.info:hover, .info:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }
.info .tip {
  position: absolute; z-index: 20; left: -10px; bottom: calc(100% + 8px); transform: translateY(4px);
  width: max-content; max-width: min(280px, 80vw); padding: 8px 10px; border-radius: 8px;
  font: 400 .8rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; white-space: normal;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgb(0 0 0 / .25);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, transform .15s, visibility .15s;
  translate: var(--shift, 0px) 0; /* set by common.js so it fits on screen */
}
.info .tip::after {
  content: ""; position: absolute; top: 100%; left: calc(13px - var(--shift, 0px));
  border: 5px solid transparent; border-top-color: var(--border);
}
.info:hover .tip, .info:focus .tip, .info:focus-within .tip { opacity: 1; visibility: visible; transform: none; }
#tz-preview { display: block; margin-top: 4px; color: var(--muted); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.card-head h2 { margin: 0; }
.btn-sm, .icon-btn { display: inline-flex; align-items: center; gap: 6px; }
.btn-sm { padding: .35rem .75rem; font-size: .85rem; border-radius: 999px; }
.btn-sm svg, .icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* Modal (native <dialog>) */
/* While one is open the page behind stays still (the gutter is reserved, so nothing shifts),
   and scrolling to the end of a long modal doesn't carry on to the page. */
html:has(dialog:modal) { overflow: hidden; }
dialog:modal { overscroll-behavior: contain; }
.modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 18px; overflow: auto;
  border: 1px solid var(--border); border-radius: 14px; color: var(--text); background: var(--surface);
  box-shadow: 0 20px 60px rgb(0 0 0 / .45);
}
.modal::backdrop { background: rgb(8 12 18 / .55); backdrop-filter: blur(2px); }
.modal .stack { max-width: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; }
.icon-btn { justify-content: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 0; color: var(--muted); background: none; }
.icon-btn:hover { color: var(--text); background: var(--bg); }
.picker-map { height: 240px; cursor: crosshair; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; }

/* Toast notifications (bottom centre, auto-dismiss). */
.toasts {
  position: fixed; z-index: 1000; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none;
}
.toast {
  position: relative; overflow: hidden; pointer-events: auto;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 12px;
  font-size: .9rem; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgb(0 0 0 / .3); animation: toast-in .25s ease-out;
}
.toast.leaving { animation: toast-out .25s ease-in forwards; }
.toast-icon { flex: none; width: 20px; height: 20px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.toast-ok .toast-icon { stroke: var(--ok); }
.toast-error .toast-icon { stroke: var(--danger); }
.toast-error { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.toast-text { flex: 1; }
.toast-close { flex: none; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: none; }
.toast-close:hover { color: var(--text); background: var(--bg); }
.toast-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
/* Thin bar showing the time left before it disappears. */
.toast-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; animation: toast-timer linear forwards; }
.toast-ok .toast-timer { background: var(--ok); }
.toast-error .toast-timer { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }
@keyframes toast-timer { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.leaving { animation-duration: 1ms; } }

.btn-sm.danger-outline { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); background: none; }
.btn-sm.danger-outline:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
/* ---- Landing page ---- */
/* Furfrou's hero: charcoal, over a faint lattice, with a red glow. */
.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); /* never wider than the page */ gap: 22px;
  margin-bottom: 16px; padding: 28px; border-radius: 18px; color: #fff;
  background:
    var(--pattern),
    radial-gradient(circle var(--hero-r, farthest-corner) at 88% var(--hero-y, 12%), rgb(255 255 255 / .22), transparent var(--hero-glow, 42%)),
    linear-gradient(135deg, var(--g1) 0, var(--g2) var(--hero-mid, 48%), var(--g3) var(--hero-len, 100%));
  /* --hero-*: set by home.js in px from the folded header, so unfolding "Más"
     extends the gradient (its end colour) instead of stretching it. */
  box-shadow: 0 14px 34px color-mix(in srgb, var(--g3) 32%, transparent);
}
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.hero-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 900 clamp(2rem, 5vw, 2.8rem)/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.02em; text-shadow: 0 2px 10px rgb(0 0 0 / .4); }
.hero-brand img { width: 1.15em; height: 1.15em; filter: drop-shadow(0 3px 6px rgb(20 20 60 / .35)); }
.hero-mascot { width: clamp(130px, 22vw, 210px); height: auto; filter: drop-shadow(0 12px 18px rgb(20 20 60 / .35)); animation: mascot-float 5s ease-in-out infinite; }
@keyframes mascot-float { 50% { transform: translateY(-9px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-mascot { animation: none; } }
.eyebrow { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
/* The landing's tagline under "Furfrou": the eyebrow's lettering, a size up, in balanced lines. */
.hero-tagline { max-width: 34ch; font-size: clamp(.84rem, 1.7vw, 1.02rem); line-height: 1.45; letter-spacing: .07em; opacity: .95; text-wrap: balance; text-shadow: 0 1px 6px rgb(0 0 0 / .45); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px; padding: .6rem 1.1rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; color: var(--hero-ink); background: #fff; transition: transform .15s, box-shadow .15s;
}
.btn-hero:hover, .btn-hero:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / .18); }
.btn-hero .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hero-figure {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: 12px;
  background: rgb(255 255 255 / .13); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(4px);
}
.hero-figure strong { font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-figure span { opacity: .9; min-width: 0; line-height: 1.25; }
.hero-figures[hidden] { display: none; }
/* "Más cifras": the list's divider and pill, in the header's colours, with room around it. */
.hero-more-wrap { margin: -4px 0; } /* the header's grid gap already spaces it */
.hero-more-wrap[hidden] { display: none; }
.hero-more-wrap::before { border-top-color: rgb(255 255 255 / .3); }
.hero .more { --hex-line: rgb(255 255 255 / .24); color: #fff; backdrop-filter: blur(4px); }
.hero .more::before { display: none; } /* see-through cell over the gradient: no separate line */
.hero .more:hover, .hero .more:focus-visible { --hex-line: #fff; color: var(--hero-ink); }
.hero-figures .hero-error { grid-column: 1 / -1; margin: 0; }
/* Medium screens: four figures still fit in a row with the number over its label. */
@media (max-width: 960px) {
  .hero-figure { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; }
  .hero-figure strong { font-size: 1.45rem; }
  .hero-figure span { font-size: .8rem; }
}
@media (max-width: 720px) {
  .hero { padding: 22px 18px; }
  .hero-main { grid-template-columns: minmax(0, 1fr) 96px; }
  .hero-mascot { width: 96px; align-self: start; }
  .hero-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .hero-figure { flex-direction: column; gap: 4px; padding: 10px; }
  .hero-figure strong { font-size: 1.25rem; }
  .hero-figure span { font-size: .72rem; }
}

.top-meetups-card h2, h2.title-ico { display: flex; align-items: center; gap: 8px; }
@media (max-width: 600px) { .top-meetups-head { flex-direction: column; align-items: stretch; } .top-meetups-head .seg { align-self: center; } }
.top-meetups-card h2 .ico, h2.title-ico .ico { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
a.btn-sm.secondary { text-decoration: none; color: var(--accent); border: 1px solid var(--accent); background: none; }
a.btn-sm.secondary:hover, a.btn-sm.secondary:focus-visible { color: var(--on-accent); background: var(--accent-fill); }
/* Community page header: the club's logo, a small kicker, the name and its members. */
.community-head { align-items: center; flex-wrap: nowrap; margin-bottom: 20px; }
.community-head .community-title { flex: 1; }
.community-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.community-avatar {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; overflow: hidden;
  background: var(--accent-soft); color: var(--accent); font: 800 1.6rem/1 system-ui, sans-serif;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent), 0 4px 14px rgb(0 0 0 / .25);
}
.community-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.community-kicker { margin: 0 0 2px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.community-head h1 { font-size: 1.75rem; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.community-members { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) {
  .community-avatar { width: 52px; height: 52px; border-radius: 13px; }
  .community-head h1 { font-size: 1.35rem; }
}
/* ---- Top navigation bar (public/nav.js), on every page ---- */
.login-modal button[type="submit"] { background: linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3)); border-color: var(--g3); color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .35); }
.topnav { position: sticky; top: 0; z-index: 1000; min-height: 56px; background: color-mix(in srgb, var(--surface) 88%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: saturate(1.4) blur(10px); }
.topnav-inner { max-width: 1000px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font: 850 1.2rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.01em; }
.brand img { display: block; }
.brand span { background: linear-gradient(90deg, var(--g1), var(--g2) 55%, var(--g3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { flex: 1; display: flex; align-items: center; gap: 4px; }
.nav-links > a, .nav-menu-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: .45rem .75rem; border-radius: 9px; border: 0; background: none;
  color: var(--muted); font: 500 .92rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; text-decoration: none; cursor: pointer;
}
.nav-links > a:hover, .nav-menu-btn:hover, .nav-links > a:focus-visible, .nav-menu-btn:focus-visible { color: var(--text); background: var(--bg); outline: none; }
.nav-links > a[aria-current="page"], .nav-menu-btn.is-current { color: var(--accent); background: var(--accent-soft); }
.nav-links > a[hidden] { display: none; }
.nav-chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.nav-menu-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-menu { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; width: 300px; display: flex; flex-direction: column;
  padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgb(0 0 0 / .28);
}
.nav-dropdown[hidden] { display: none; }
/* Search box on top; the list scrolls under it and loads more at its end. */
.nav-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; margin-bottom: 6px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); }
.nav-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.nav-search svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-search input { flex: 1; min-width: 0; height: 36px; border: 0; background: none; color: var(--text); font: inherit; font-size: .9rem; outline: none; }
.nav-list { margin: 0; padding: 0; list-style: none; max-height: min(55vh, 340px); overflow-y: auto; overscroll-behavior: contain; }
.nav-more-li { padding: 4px 2px 2px; }
.nav-more { width: 100%; padding: 7px 14px; color: var(--accent); font: 600 .85rem/1.2 system-ui, sans-serif; cursor: pointer; }
.nav-more:hover, .nav-more:focus-visible { --hex-line: var(--accent); --hex-fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); outline: none; }
.nav-status { margin: 4px 4px 0; font-size: .76rem; color: var(--muted); }
.nav-status:empty { display: none; }
.nav-dropdown a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .9rem; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: var(--bg); outline: none; }
.nav-dropdown a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-avatar { width: 30px; height: 30px; }
.nav-avatar img, .nav-initial { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.nav-avatar > .ca-star { top: -5px; right: -5px; width: 15px; height: 15px; }
.nav-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-empty { padding: 8px 10px; color: var(--muted); font-size: .88rem; }
.nav-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; margin-left: auto; width: 38px; height: 38px; padding: 0; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
@media (max-width: 640px) {
  .nav-toggle { display: grid; }
  .nav-links {
    display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px 12px 12px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgb(0 0 0 / .25);
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a, .nav-menu-btn { width: 100%; justify-content: flex-start; padding: .65rem .75rem; }
  .nav-dropdown { position: static; width: auto; margin-top: 4px; box-shadow: none; }
  .nav-list { max-height: 45vh; }
}
/* Anchors (the landing's #comunidades) land below the sticky bar. */
html { scroll-padding-top: 68px; }
/* Landing: who owns the images and the data, small and centred at the bottom. */
.legal-foot { max-width: 720px; margin: 28px auto 4px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; font-size: .74rem; line-height: 1.5; color: var(--muted); }
/* Navigation bar: the account on the right ("Iniciar sesión", or the community's logo and its menu). */
.nav-account { position: relative; margin-left: auto; flex: none; }
.nav-login {
  display: inline-flex; align-items: center; gap: 7px; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .88rem/1.2 system-ui, sans-serif; cursor: pointer;
}
.nav-login:hover, .nav-login:focus-visible { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); outline: none; }
.nav-login svg, .nav-account-menu svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-account-btn { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; }
.nav-account-btn:hover, .nav-account-btn:focus-visible, .nav-account-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--text); outline: none; }
.nav-account-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-account-btn .nav-avatar img, .nav-account-btn .nav-initial { border-radius: 50%; }
.nav-site { display: grid; place-items: center; color: var(--accent); }
.nav-site svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.nav-account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 1001; width: 300px; max-width: calc(100vw - 24px); padding: 8px;
  display: grid; gap: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 16px 40px rgb(0 0 0 / .32);
}
.nav-account-menu[hidden] { display: none; }
.nav-account-menu svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* 1. The community and its permissions. */
.nav-account-head { display: flex; align-items: center; gap: 12px; padding: 6px 6px 10px; border-bottom: 1px solid var(--border); }
.nav-avatar.is-big { width: 44px; height: 44px; flex: none; }
.nav-avatar.is-big img, .nav-avatar.is-big.nav-initial, .nav-avatar.is-big .nav-initial { width: 44px; height: 44px; border-radius: 50%; }
.nav-avatar.is-big > .ca-star { width: 17px; height: 17px; top: -4px; right: -5px; }
.nav-account-name { display: grid; gap: 5px; min-width: 0; }
.nav-account-name strong { font-size: .95rem; line-height: 1.2; overflow-wrap: anywhere; }
.nav-roles { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-role { padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); }
.nav-role.is-site { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--g1), var(--g3)); }
/* 2. Its page. */
.nav-account-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: var(--text); font: 600 .88rem/1.2 system-ui, sans-serif; text-decoration: none; }
.nav-account-row > span { flex: 1; }
.nav-account-row .nav-go { color: var(--muted); }
.nav-account-row:hover, .nav-account-row:focus-visible { background: var(--bg); outline: none; }
/* 3 and 4. A panel's tabs, as four tiles; the site's in Furfrou's colours. */
.nav-account-section { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.nav-section-title { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.nav-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.nav-tiles .nav-tile:last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd one out (the site panel's five) takes the whole row */
.nav-tile { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; font: 600 .82rem/1.2 system-ui, sans-serif;
  color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, color .15s, background-color .15s; }
.nav-tile svg { color: var(--accent); }
.nav-tile:hover, .nav-tile:focus-visible { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); outline: none; }
.nav-account-section.is-site { border: 0; color: #fff;
  background:
    var(--pattern),
    linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--g3) 32%, transparent); }
.nav-account-section.is-site .nav-section-title { color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .4); }
.is-site .nav-tile { color: #fff; background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .3); text-shadow: 0 1px 2px rgb(0 0 0 / .35); }
.is-site .nav-tile svg { color: #fff; }
.is-site .nav-tile:hover, .is-site .nav-tile:focus-visible { color: var(--hero-ink); background: #fff; border-color: #fff; text-shadow: none; }
.is-site .nav-tile:hover svg, .is-site .nav-tile:focus-visible svg { color: var(--g3); }
/* 5. Signing out. */
.nav-account-menu .nav-logout { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px; background: none; color: var(--danger); font: 600 .88rem/1.2 system-ui, sans-serif; text-align: left; cursor: pointer; }
.nav-account-menu .nav-logout:hover, .nav-account-menu .nav-logout:focus-visible { background: color-mix(in srgb, var(--danger) 10%, transparent); outline: none; }
@media (max-width: 640px) {
  /* Phones: the menu and the account are twin 38px square buttons, side by side
     and centred on the bar (the signed-in one keeps its logo and chevron). */
  .nav-account { margin-left: 0; order: 3; display: flex; align-items: center; }
  .nav-toggle { order: 2; margin-right: -8px; } /* 8px between the twins, not the bar's 16px */
  .nav-login span { display: none; }
  .nav-login, .nav-account-btn { box-sizing: border-box; height: 38px; border-radius: 10px; }
  .nav-login { display: grid; place-items: center; width: 38px; padding: 0; }
  .nav-login svg { width: 18px; height: 18px; }
  .nav-account-btn { padding: 0 6px 0 3px; }
  /* The account menu fills the screen under the bar, its parts a little roomier. */
  /* (The bar's blur makes it the menu's frame: the height is the screen's under the bar.) */
  .nav-account-menu { position: fixed; top: var(--nav-bottom, 60px); left: 0; right: 0; height: calc(100dvh - var(--nav-bottom, 60px));
    box-sizing: border-box; width: auto; max-width: none;
    align-content: start; gap: 10px; padding: 16px; overflow-y: auto; overscroll-behavior: contain;
    border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; }
  .nav-account-head { padding: 4px 4px 14px; }
  .nav-avatar.is-big, .nav-avatar.is-big img, .nav-avatar.is-big.nav-initial, .nav-avatar.is-big .nav-initial { width: 52px; height: 52px; }
  .nav-account-name strong { font-size: 1.05rem; }
  .nav-account-row { padding: 12px; font-size: .95rem; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
  .nav-account-section { padding: 12px; gap: 10px; }
  .nav-tile { padding: 12px; font-size: .9rem; }
  .nav-account-menu .nav-logout { margin-top: 4px; padding: 12px; border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--border));
    border-radius: 12px; justify-content: center; }
  html.nav-account-open { overflow: hidden; }
}
/* Sign-in modal: the community (searched by name), then its password. */
/* The sign-in window: like the site's other modals (a sheet: header with its
   round icon, title and what to do; the fields; the site-key switch; the foot). */
.login-modal.sheet { width: min(460px, calc(100vw - 32px)); }
.login-body { display: grid; gap: 14px; }
.login-field { display: grid; gap: 6px; }
.login-field input[type="password"] { width: 100%; }
.login-label { font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.login-alt { padding-top: 10px; padding-bottom: 10px; }
.login-mode { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; font: inherit; font-size: .88rem; font-weight: 600;
  text-align: left; color: var(--text); background: var(--bg); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--border)); cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s; }
.login-mode span { flex: 1; }
.login-mode:hover, .login-mode:focus-visible { color: var(--accent); border-style: solid; border-color: var(--accent); background: var(--accent-soft); outline: none; }
.login-mode svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.login-mode .nav-go { width: 15px; height: 15px; opacity: .6; }
.sheet-foot button[type="submit"] svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.login-body .msg:empty { display: none; }
/* Signing in with the site key instead (the toggle under the form). */
.login-modal [hidden] { display: none !important; }
.login-results { max-height: 220px; }
.login-results:empty { display: none; }
.login-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.login-option:hover, .login-option:focus-visible { background: var(--bg); outline: none; }
.login-chosen { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent-soft); }
.login-chosen[hidden] { display: none; }
.login-chosen-face { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; flex: none; }
.login-chosen-face img { width: 100%; height: 100%; object-fit: cover; }
.login-chosen-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-search[hidden] { display: none; }
/* Site panel: the communities whose admins may use it. */
.site-admin-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; vertical-align: 2px; font-size: .66rem; font-weight: 700; letter-spacing: .02em; color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
/* Site panel sign-in: a centred card (icon, title, why), the sign-in button,
   and the site key folded under a divider like the landing's "Más". */
.site-login { max-width: 460px; margin: 32px auto; padding: 32px 28px 24px; display: grid; justify-items: center; gap: 12px; text-align: center; }
/* The admin sign-in cards (site and community) in Furfrou's colours, like the landing's header. */
:is(.site-login, .access-card) {
  --accent: var(--g2); --accent-soft: color-mix(in srgb, var(--g1) 16%, transparent);
  border-color: color-mix(in srgb, var(--g2) 45%, var(--border));
}
:is(.site-login, .access-card) button:not(.more):not(.secondary) { background: linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3)); border-color: var(--g3); color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .35); }
:is(.site-login, .access-card) input:focus { outline: 2px solid color-mix(in srgb, var(--g2) 55%, transparent); outline-offset: 1px; border-color: var(--g2); }
.site-login h1 { margin: 0; font-size: 1.4rem; }
.site-login > p { margin: 0; max-width: 36ch; }
.site-login-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3)); }
.site-login-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-login #open-login { margin-top: 6px; }
/* Site panel header: laid out like a community's (badge, kicker, title), in
   Furfrou's colours so it's plain this is the whole site's administration. */
.site-head .community-kicker { color: var(--g2); }
.site-head-badge {
  display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 16px;
  color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3));
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--g2) 45%, transparent), 0 4px 14px rgb(0 0 0 / .25); /* the ring of a community's logo */
}
.site-head-badge svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .site-head-badge { width: 52px; height: 52px; border-radius: 13px; } .site-head-badge svg { width: 26px; height: 26px; } }
/* Community admin sign-in (and first password change): the same centred card
   as the site panel's, with the community's logo (or a padlock). */
.access-card { max-width: 460px; margin: 32px auto; padding: 32px 28px 24px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.access-card h1 { margin: 0; font-size: 1.4rem; }
.access-card > p { margin: 0; max-width: 36ch; }
.access-card .access-name { margin-top: -6px; font-weight: 600; color: var(--accent); }
.access-face {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3));
}
.access-face svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.access-face.has-logo { width: 64px; height: 64px; border-radius: 14px; background: none; border: 0; }
.access-face img { width: 100%; height: 100%; object-fit: cover; }
.access-avatar > .ca-star { top: -6px; right: -6px; }
.access-form { justify-self: stretch; max-width: none; margin-top: 6px; text-align: left; }
.access-form button { justify-self: center; margin-top: 10px; }
.access-form .msg { text-align: center; }
.access-link { margin-top: 4px; }
/* Pill buttons, like the rest of the site (the landing's and the sign-in modal's). */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .6rem 1.3rem; border-radius: 999px;
  font-weight: 600; transition: transform .15s, box-shadow .15s, background-color .15s, color .15s;
}
.btn-pill svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-pill:hover, .btn-pill:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / .18); outline: none; }
.btn-pill.secondary:hover, .btn-pill.secondary:focus-visible { color: var(--on-accent); background: var(--accent-fill); }
button.btn-sm.secondary:hover, button.btn-sm.secondary:focus-visible { color: var(--on-accent); background: var(--accent-fill); }
.page-head .btn-sm { align-self: center; }

/* Modals for adding or editing things (and the raffle): a header with a round
   badge, title and a line under it; then the parts of the form, each split by a
   thin line; and the buttons, rounded, on a slightly darker strip at the foot.
   The header and the buttons stay in view while a long form scrolls. */
.modal.sheet { width: min(560px, calc(100vw - 32px)); padding: 0; border-radius: 18px; }
.modal.sheet.is-wide { width: min(760px, calc(100vw - 32px)); }
.sheet > form, .sheet > .stack { display: grid; grid-template-columns: minmax(0, 1fr); /* never wider than the modal */ gap: 0; max-width: none; }
.sheet > form > *, .sheet > .stack > * { margin: 0; padding: 16px 20px; }
.sheet > form > * + *:not([hidden]), .sheet > .stack > * + *:not([hidden]) { border-top: 1px solid var(--border); }
.sheet-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 70%) var(--surface); }
.sheet-badge { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--on-accent); background: var(--accent-fill); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
.sheet-badge svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sheet.is-danger .sheet-head { background: linear-gradient(135deg, color-mix(in srgb, var(--danger) 14%, var(--surface)), var(--surface) 70%) var(--surface); }
.sheet.is-danger .sheet-badge { color: #fff; background: var(--danger); box-shadow: 0 4px 14px color-mix(in srgb, var(--danger) 35%, transparent); }
.sheet-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sheet-title h2 { margin: 0; font-size: 1.15rem; }
.sheet-title p { margin: 0; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.sheet-head .icon-btn { align-self: flex-start; }
.sheet-body { display: grid; gap: 12px; }
.sheet-body > * { margin: 0; }
.sheet-body .msg:empty { display: none; }
.sheet input:not([type=checkbox]):not([type=radio]), .sheet select, .sheet textarea { border-radius: 10px; }
.sheet-foot { position: sticky; bottom: 0; z-index: 3; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px;
  background: color-mix(in srgb, var(--bg) 50%, var(--surface)); }
.sheet-foot button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .55rem 1.2rem;
  border-radius: 999px; font-weight: 600; transition: transform .15s, box-shadow .15s, background-color .15s, color .15s; }
.sheet-foot button svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet-foot button:not(:disabled):hover, .sheet-foot button:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / .18); outline: none; }
.sheet-foot button.secondary:not(:disabled):hover, .sheet-foot button.secondary:focus-visible { color: var(--on-accent); background: var(--accent-fill); }
.sheet-foot a.btn-pill { padding: .55rem 1.2rem; text-decoration: none; }
.sheet-foot a.btn-pill:not(.secondary) { color: var(--on-accent); background: var(--accent-fill); }
.sheet-foot .ico { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet-foot button:disabled { transform: none; box-shadow: none; }
/* A small heading inside a part of the form. */
.sheet-label { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) {
  .sheet > form > *, .sheet > .stack > * { padding: 14px 16px; }
  .sheet-foot { justify-content: stretch; }
  .sheet-foot button, .sheet-foot a.btn-pill { flex: 1 1 auto; }
}
.card-title { display: flex; align-items: center; gap: 8px; }
.card-title > .ico { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tg-card, .tg-sheet { --brand: #229ed9; }
.tg-links { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: 8px; }
.tg-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.tg-link.is-on { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.tg-link.is-broken { border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); }
/* "Alertas configuradas" (alerts-panel.js): the kind's alerts on this platform, each with its switch. */
.tg-events { flex-basis: 100%; min-width: 0; padding-top: 8px; border-top: 1px dashed var(--border); }
.tg-events > summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--brand); }
.tg-events > summary::-webkit-details-marker { display: none; }
.tg-events > summary .chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.tg-events[open] > summary .chevron { transform: rotate(180deg); }
.tg-events > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.tg-events-count { font-weight: 600; }
.tg-events-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.tg-event { display: flex; align-items: center; gap: 12px; padding: 7px 4px; border-radius: 8px; }
.tg-event + .tg-event { border-top: 1px solid var(--border); border-radius: 0; }
.tg-event-text { flex: 1 1 auto; display: grid; gap: 1px; min-width: 0; cursor: pointer; }
.tg-event-text strong { font-size: .88rem; }
.tg-event.is-off .tg-event-text { opacity: .6; }
/* A switch: a checkbox (role=switch) over its track, in the platform's colour. */
.switch { position: relative; flex: none; display: inline-block; width: 38px; height: 22px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: var(--border); transition: background .15s; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / .3); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--brand, var(--accent)); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:disabled + .switch-track { opacity: .55; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--brand, var(--accent)); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .switch-track, .switch-track::after { transition: none; } }
.tg-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--brand); }
.tg-link:not(.is-on):not(.is-broken) .tg-icon { color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.tg-icon svg, .tg-actions svg, .sheet-badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tg-text { flex: 1 1 240px; display: grid; gap: 2px; min-width: 0; }
.tg-where { margin-top: 3px; font-weight: 600; color: color-mix(in srgb, var(--brand) 80%, var(--text)); }
.tg-where.is-broken { color: var(--danger); }
.tg-where.is-warning { display: block; color: var(--warning, #d97706); } /* the bot can't pin there: the notices still go */
.tg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.tg-command { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.tg-command code { flex: 1 1 auto; padding: 10px 14px; border-radius: 10px; font-size: 1.1rem; font-weight: 700; letter-spacing: .04em;
  color: var(--text); background: var(--bg); border: 1px dashed color-mix(in srgb, var(--brand) 60%, var(--border)); user-select: all; }
.tg-steps { margin: 0; }

/* Configuración › Telegram: folded (on every visit) behind its chevron; folded, a click anywhere opens it. */
.tg-head { display: flex; align-items: center; gap: 8px; margin: 0; }
.tg-head > .ico { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tg-summary { font-size: .85rem; font-weight: 500; }
.tg-toggle { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; padding: 0; border-radius: 50%;
  color: var(--muted); background: none; border: 1px solid var(--border); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.tg-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.tg-toggle:hover, .tg-toggle:focus-visible { color: #fff; background: var(--brand); border-color: var(--brand); outline: none; }
.tg-card.is-folded .tg-toggle svg { transform: rotate(180deg); }
.tg-card.is-folded .tg-body { display: none; }
.tg-card.is-folded { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tg-card.is-folded:hover { border-color: var(--brand); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent); }
/* The linking window: its platform's colour, numbered steps, the code, waiting for it. */
.tg-sheet .sheet-badge { color: #fff; background: var(--brand); box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 35%, transparent); }
.link-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.link-steps > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; counter-increment: step; }
.link-step-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: .85rem;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); }
.link-step-num::before { content: counter(step); }
.link-step { display: grid; gap: 6px; justify-items: start; min-width: 0; padding-top: 3px; }
.link-step p { margin: 0; }
.link-step .btn-sm { display: inline-flex; align-items: center; gap: 6px; }
.link-step .btn-sm svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link-step .tg-command { width: 100%; margin: 2px 0 0; }
.tg-sheet .tg-command code { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.tg-wait { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; color: var(--muted);
  background: color-mix(in srgb, var(--brand) 7%, transparent); border: 1px dashed color-mix(in srgb, var(--brand) 40%, var(--border)); }
.tg-pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: tg-pulse 1.4s ease-in-out infinite; }
.tg-wait.is-expired { border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); background: none; }
.tg-wait.is-expired .tg-pulse { background: var(--danger); animation: none; }
@keyframes tg-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.tg-done { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 10px 0; }
.tg-done p { margin: 0; }
.tg-done-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: var(--brand);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 40%, transparent); }
.tg-done-mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tg-linked { font-size: 1.02rem; }
@media (prefers-reduced-motion: reduce) { .tg-toggle svg { transition: none; } .tg-pulse { animation: none; } }

/* ---- Furfrou's own pieces ---- */
textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: .45rem .55rem; width: 100%; resize: vertical; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 1px; border-color: var(--accent); }
button.secondary:hover { background: var(--accent-soft); }
.num { font-variant-numeric: tabular-nums; }
.card > h2:only-child { margin: 0; }
.card-head .more-link { font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.card-head .more-link:hover { text-decoration: underline; }
.empty-box { margin: 0; padding: 26px 16px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; color: var(--muted); }
.hero .btn-hero.is-ghost { color: #fff; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .35); backdrop-filter: blur(4px); }
.hero .btn-hero.is-ghost:hover { background: #fff; color: var(--hero-ink); }
.hero .hero-mascot { width: clamp(110px, 20vw, 190px); height: clamp(110px, 20vw, 190px); object-fit: contain; }
@media (max-width: 720px) { .hero .hero-mascot { width: 96px; height: 96px; } }

/* Chips: an exhibition's goal, state and bonus; an entry's state. */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: .12rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; line-height: 1.5; white-space: nowrap;
  color: var(--muted); background: var(--bg); border: 1px solid var(--border); }
.chip.is-accent { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.chip.is-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.chip.is-info { color: var(--info); background: color-mix(in srgb, var(--info) 12%, transparent); border-color: color-mix(in srgb, var(--info) 40%, transparent); }
.chip.is-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.chip.is-danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.chip.is-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .35; transform: scale(.75); } }
@media (prefers-reduced-motion: reduce) { .chip.is-live::before { animation: none; } }

/* A Pokémon's icon in a square frame; on its lower edge, its exhibition's state.
   The label lies over the edge, out of the picture's box: the picture stays centred. */
.poke { --frame: color-mix(in srgb, var(--accent) 45%, transparent); position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 16px;
  background: radial-gradient(circle at 50% 35%, var(--surface), var(--accent-soft));
  border: 2px solid var(--frame); box-shadow: 0 4px 14px rgb(0 0 0 / .18); }
/* Within the frame whatever its shape (a tall one, like Furfrou's, is fitted by its height). */
.poke img { flex: none; width: 84%; height: 84%; min-width: 0; min-height: 0; object-fit: contain; display: block; }
.poke.is-big { width: 88px; height: 88px; border-radius: 20px; }
.poke.is-sm { width: 40px; height: 40px; border-radius: 11px; box-shadow: none; }
.poke.is-active { --frame: var(--ok); }
.poke.is-upcoming { --frame: var(--info); }
.poke.is-finished { --frame: color-mix(in srgb, var(--muted) 60%, transparent); }
.poke-state { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 55%); padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  font-size: .56rem; font-weight: 800; letter-spacing: .07em; line-height: 1.5; text-transform: uppercase; color: #fff; background: var(--frame); box-shadow: 0 0 0 2px var(--surface); }
.poke.is-finished .poke-state { color: var(--text); background: color-mix(in srgb, var(--muted) 35%, var(--surface)); }
.poke.is-big .poke-state { font-size: .64rem; padding: 1px 9px; }
/* The longest word: a little smaller, to sit well within the frame. */
.poke.is-finished .poke-state { font-size: .5rem; padding: 1px 5px; letter-spacing: .03em; }
.poke.is-big.is-finished .poke-state { font-size: .56rem; padding: 1px 8px; }
/* Room under it for the label that hangs from its edge. */
.poke:has(.poke-state) { margin-bottom: 8px; }
@media (max-width: 560px) { .poke.is-big { width: 68px; height: 68px; } }

/* Exhibitions as cards (the landing). */
.x-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.x-card { display: grid; align-content: start; gap: 12px; padding: 14px; border-radius: 14px; color: var(--text); text-decoration: none;
  background: var(--bg); border: 1px solid var(--border); transition: border-color .15s, transform .15s, box-shadow .15s; }
.x-card:hover, .x-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 0 0 / .12); outline: none; }
.x-card.is-live { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); background: linear-gradient(160deg, var(--accent-soft), var(--bg) 55%); }
/* The name starts at the picture's top; its pills, under it, beside the picture. */
.x-top { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.x-names { min-width: 0; display: grid; gap: 1px; margin-top: -3px; }
.x-names .chips { margin-top: 7px; gap: 5px; }
.x-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; }
.x-event { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.x-when { margin: 0; font-size: .84rem; color: var(--muted); }
.x-when strong { color: var(--text); }
.x-none { margin: 0; font-size: .84rem; color: var(--muted); }

/* A short ranking: position, who, value (cards, the landing's month). */
.mini-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mini-rank li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .92rem; }
.mini-rank .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mini-rank .val { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.medal { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.medal.p1 { color: #fff; background: var(--gold); border-color: transparent; }
.medal.p2 { color: #fff; background: var(--silver); border-color: transparent; }
.medal.p3 { color: #fff; background: var(--bronze); border-color: transparent; }

/* The first three of a ranking on a podium, and the rest as rows with a bar, as Combee's "who came most". */
.podium, .top-rest { --gold: #e9a900; --silver: #9aa6b6; --bronze: #c9793a; }
.top-people .panel-head { align-items: center; row-gap: 8px; }
.top-sub { margin: 4px 0 14px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; max-width: 620px; margin: 0 auto; }
.top-place { display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; }
.top-place.is-1 { --medal: var(--gold); }
.top-place.is-2 { --medal: var(--silver); }
.top-place.is-3 { --medal: var(--bronze); }
.top-pic { position: relative; flex: none; display: block; width: 36px; height: 36px; }
.top-pic img, .top-pic-empty { position: absolute; inset: 0; box-sizing: border-box; width: 100%; height: 100%; max-width: none;
  border-radius: 50%; object-fit: cover; background: var(--bg); border: 2px solid var(--border); }
.top-pic-empty { display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.top-pic > .ca-star { top: auto; bottom: -4px; right: -4px; z-index: 1; }
.top-pic.is-big > .ca-star { width: 22px; height: 22px; bottom: -2px; right: -2px; }
.top-pic.is-big { width: 64px; height: 64px; }
.top-place.is-1 .top-pic.is-big { width: 80px; height: 80px; }
.top-pic.is-big img, .top-pic.is-big .top-pic-empty { border: 3px solid var(--medal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--medal) 20%, transparent); }
.top-place.is-1 .top-pic.is-big { margin-top: 16px; }
.top-place.is-1 .top-pic::before { /* a small crown over the first */
  content: ''; position: absolute; left: 50%; top: -17px; width: 26px; height: 16px; transform: translateX(-50%);
  background: var(--gold); clip-path: polygon(0 100%, 0 20%, 25% 60%, 50% 0, 75% 60%, 100% 20%, 100% 100%);
}
.top-who { display: grid; min-width: 0; max-width: 100%; line-height: 1.25; }
.top-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.top-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; color: var(--muted); }
.top-step {
  display: grid; align-content: start; justify-items: center; gap: 2px; width: 100%; padding: 10px 6px 12px; border-radius: 12px 12px 4px 4px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--medal) 30%, var(--surface)), color-mix(in srgb, var(--medal) 8%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--medal) 50%, var(--border)); border-bottom: 0;
}
.top-place.is-1 .top-step { min-height: 128px; }
.top-place.is-2 .top-step { min-height: 100px; }
.top-place.is-3 .top-step { min-height: 80px; }
.top-step .top-rank { font-size: 1.6rem; font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--medal) 75%, var(--text)); }
.top-place.is-1 .top-step .top-rank { font-size: 2rem; }
.top-count { font-size: .8rem; color: var(--muted); }
.top-count b { font-size: 1.05rem; color: var(--text); font-variant-numeric: tabular-nums; }
.top-share { font-size: .72rem; color: var(--muted); }
.top-rest { list-style: none; display: grid; gap: 6px; max-width: 620px; margin: 12px auto 0; padding: 0; }
.top-rest li { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) minmax(60px, 1.2fr) auto; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.top-rest .top-rank { font-weight: 800; color: var(--muted); text-align: center; }
.top-row-who { display: grid; min-width: 0; line-height: 1.25; }
.top-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); overflow: hidden; }
.top-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.top-row-count { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.top-row-count b { color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .top-people .panel-head { flex-direction: column; align-items: stretch; }
  .top-sub { margin-top: 12px; text-align: center; } /* clear of the period buttons above */
  .top-people .seg { align-self: center; }
  .podium { gap: 6px; }
  .top-pic.is-big { width: 52px; height: 52px; }
  .top-place.is-1 .top-pic.is-big { width: 64px; height: 64px; }
  .top-name { font-size: .8rem; }
  .top-rest li { grid-template-columns: 18px 32px minmax(0, 1fr) auto; }
  .top-rest .top-pic { width: 32px; height: 32px; }
  .top-bar { grid-column: 3 / -1; grid-row: 2; }
  .top-row-count span { display: none; }
}

.podium { margin-bottom: 4px; }
.top-pic.is-big .top-pic-empty { font-size: 1.5rem; color: color-mix(in srgb, var(--medal) 70%, var(--text)); background: color-mix(in srgb, var(--medal) 12%, var(--surface)); }
.top-place.is-1 .top-pic.is-big .top-pic-empty { font-size: 1.9rem; }
.top-rest { max-width: none; }
.top-rest .top-user { font-size: .75rem; }


/* A segmented choice (the months of a year, the entries' states). */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.seg button { padding: .32rem .8rem; border: 0; border-radius: 9px; font-size: .86rem; font-weight: 600; color: var(--muted); background: none; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: var(--on-accent); background: var(--accent-fill); }
.seg .count { margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: .72rem; background: color-mix(in srgb, currentColor 18%, transparent); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.toolbar label { display: inline-flex; align-items: center; gap: 8px; }
.toolbar select { width: auto; }

/* How to take part: numbered steps (the linking window's). */
.how-steps { margin-top: 4px; }
.how-steps .link-step p { margin: 0; color: var(--muted); font-size: .9rem; }
.rules { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); font-size: .86rem; color: var(--muted); display: grid; gap: 4px; }
.rules b { color: var(--text); }

/* ---- Site panel ---- */
.site-head .community-kicker { color: var(--accent); }
.tabs button .count { padding: 0 7px; border-radius: 999px; font-size: .72rem; font-weight: 800; color: var(--on-accent); background: var(--accent-fill); }
.fields { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions button, .btn-round { border-radius: 999px; font-weight: 600; }
button.danger-outline { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); background: none; }
button.danger-outline:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
button.danger-solid { color: #fff; background: var(--danger); border-color: var(--danger); }
p.warning { color: var(--danger); }

/* An entry to review: its video (or the still kept of it) and, beside it, what
   was read, the rules it meets and the form. */
/* An entry: folded, a line (whose, what was read, how the rules went); open, its video and the review. */
.entry { padding: 0; overflow: hidden; }
.entry-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 10px 14px; list-style: none; cursor: pointer; }
.entry-line::-webkit-details-marker { display: none; }
.entry-line:hover, .entry-line:focus-visible { background: color-mix(in srgb, var(--accent-soft) 50%, transparent); outline: none; }
.entry-who { min-width: 0; display: grid; gap: 1px; }
.entry-who strong, .entry-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-read { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; min-width: 0; }
.entry-tag { max-width: 280px; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); background: var(--bg); border: 1px solid var(--border); }
.entry-tag.is-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.entry-tag.is-fail { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.entry-tag.is-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.entry-line .chevron { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.entry[open] > .entry-line .chevron { transform: rotate(180deg); }
.entry[open] > .entry-line { border-bottom: 1px solid var(--border); }
.entry-body { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 18px; align-items: start; padding: 16px; }
@media (max-width: 640px) {
  .entry-line { grid-template-columns: auto minmax(0, 1fr) auto auto; row-gap: 6px; }
  .entry-tags { grid-column: 2 / 4; grid-row: 2; justify-content: flex-start; }
  .entry-line .chevron { grid-column: 4; grid-row: 1; }
  .entry-tag { max-width: 100%; }
}
.entry-media video, .entry-media img { width: 100%; max-height: 72vh; border-radius: 12px; background: #000; display: block; }
.entry-media figure { margin: 0; display: grid; gap: 6px; }
.entry-side { display: grid; gap: 14px; min-width: 0; }
.entry-head { display: grid; gap: 6px; }
.entry-from { margin: 0; font-size: .85rem; color: var(--muted); }
.entry-auto { margin: 0; padding: 6px 10px; border-radius: 10px; color: var(--muted); background: var(--bg); border: 1px dashed var(--border); }
.entry-move { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; color: var(--muted); }
.entry-move select { width: auto; min-width: 0; max-width: 100%; padding: .3rem .6rem; font-size: .85rem; }
.checks { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 7px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; align-items: start; font-size: .9rem; }
.check-dot { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; font-size: .72rem; font-weight: 800; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.check-dot.ok { color: #fff; background: var(--ok); border-color: transparent; }
.check-dot.fail { color: #fff; background: var(--danger); border-color: transparent; }
.check-dot.warn { color: #fff; background: var(--warn); border-color: transparent; }
.check-dot.info { color: #fff; background: var(--info); border-color: transparent; }
.entry form { display: grid; gap: .7rem; }
@media (max-width: 680px) { .entry-body { grid-template-columns: 1fr; } .entry-media video, .entry-media img { max-height: 60vh; } }

/* Lists of the panel: exhibitions, players. */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rows > li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.row-text { flex: 1 1 220px; min-width: 0; display: grid; gap: 3px; }
.row-text strong { overflow-wrap: anywhere; }
.row-text strong a { color: inherit; text-decoration: none; }
.row-text strong a:hover { color: var(--accent); }
.row-figures { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); text-align: center; }
.row-figures b { display: block; font-size: 1.05rem; color: var(--text); font-variant-numeric: tabular-nums; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }

/* The site's state (Configuración): Furfrou's version in a banner, and what it leans on. */
.version-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 22px; border: 0; color: #fff;
  background: var(--pattern), linear-gradient(135deg, var(--g1), var(--g2) 55%, var(--g3)); box-shadow: 0 10px 26px color-mix(in srgb, var(--g3) 30%, transparent); }
.version-card > img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 10px rgb(20 20 60 / .35)); }
.version-main { display: grid; gap: 4px; margin-right: auto; }
.version-number { margin: 0; font: 900 clamp(1.8rem, 5vw, 2.3rem)/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.02em; }
.version-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.version-facts li { display: grid; gap: 1px; padding: 7px 12px; border-radius: 12px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .25); }
.version-facts span { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.version-facts strong { font-weight: 700; font-variant-numeric: tabular-nums; }
/* The site's state: a tile for each thing it leans on, its icon in the colour of how it is. */
.state-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.state-tile { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.state-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.state-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.state-tile.is-ok .state-ico { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.state-tile.is-warn .state-ico { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.state-tile.is-danger .state-ico { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.state-tile.is-danger { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.state-text { display: grid; gap: 1px; min-width: 0; line-height: 1.25; }
.state-name { font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.state-text strong { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.state-tile.is-ok strong { color: var(--ok); } .state-tile.is-warn strong { color: var(--warn); } .state-tile.is-danger strong { color: var(--danger); }
.state-note { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .state-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .state-tile { flex-direction: column; align-items: flex-start; gap: 7px; } }
.how-steps { --brand: var(--accent); }
.rules p { margin: 0; }
.x-when .ico { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card > .x-when { margin: 0; }
.card-head h2 .head-ico { width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card-head.tg-head { justify-content: flex-start; }
.card-head.tg-head > h2 { display: flex; align-items: center; gap: 0 8px; flex-wrap: wrap; }
.card-head.tg-head > h2 .head-ico { margin-right: 0; stroke: var(--brand); }
@media (max-width: 600px) {
  .tab-panel .card-head { flex-wrap: wrap; row-gap: 10px; }
  .card-head .seg { width: 100%; flex-wrap: nowrap; }
  .card-head .seg button { flex: 1 1 0; padding: .4rem .3rem; font-size: .8rem; white-space: nowrap; }
  .row-actions { margin-left: 0; width: 100%; }
  .row-actions .btn-sm { flex: 1 1 auto; justify-content: center; }
}

/* Over Combee's rules, which paint these with the hero's gradient: on Furfrou's
   charcoal that would be a dark button, so they take the accent (its red). */
.brand span { background: linear-gradient(90deg, var(--text) 35%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-modal button[type="submit"], :is(.site-login, .access-card) button:not(.more):not(.secondary) { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); text-shadow: none; }
:is(.site-login, .access-card) { --accent: inherit; --accent-soft: inherit; border-color: var(--border); }
:is(.site-login, .access-card) input:focus { outline-color: color-mix(in srgb, var(--accent) 55%, transparent); border-color: var(--accent); }
.site-head .community-kicker { color: var(--accent); }
.nav-role.is-site { background: var(--accent-fill); color: var(--on-accent); }
/* The hero: a red glow behind Furfrou, and a thin light edge so it stands off a dark page. */
.hero { background: var(--pattern),
    radial-gradient(circle at 86% 30%, color-mix(in srgb, var(--glow) 42%, transparent), transparent 48%),
    linear-gradient(135deg, var(--g1) 0, var(--g2) 48%, var(--g3) 100%);
  box-shadow: 0 14px 34px rgb(0 0 0 / .28), inset 0 0 0 1px rgb(255 255 255 / .08); }
.hero .btn-hero:not(.is-ghost) { color: var(--hero-ink); }
.site-head-badge, .site-login-icon { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--accent) 55%, transparent), 0 4px 14px rgb(0 0 0 / .25); }
.version-card, .nav-account-section.is-site { box-shadow: 0 8px 22px rgb(0 0 0 / .22), inset 0 0 0 1px rgb(255 255 255 / .08); }
.is-site .nav-tile:hover, .is-site .nav-tile:focus-visible { color: var(--hero-ink); }
.is-site .nav-tile:hover svg, .is-site .nav-tile:focus-visible svg { color: var(--accent); }

/* Filled with the accent: the deep red, not the lighter one of the text. */
.nav-role.is-site, .seg button[aria-pressed="true"], .tabs button .count { background: var(--accent-fill); color: var(--on-accent); }
.hero, .version-card, .nav-account-section.is-site { box-shadow: 0 14px 34px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .1); }

/* ---- The landing's "Cómo se participa": the demo video in a phone, the steps
   beside it, and the rules as three tiles under them ---- */
.how-grid { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 22px; align-items: center; }
.how-demo { margin: 0; display: grid; gap: 10px; justify-items: center; }
.how-demo figcaption { max-width: 26ch; text-align: center; font-size: .8rem; color: var(--muted); text-wrap: balance; }
.phone { width: 100%; max-width: 250px; padding: 8px; border-radius: 30px; background: linear-gradient(160deg, var(--g1), var(--g3)); box-shadow: 0 14px 30px rgb(0 0 0 / .28), inset 0 0 0 1px rgb(255 255 255 / .12); }
.phone video { display: block; width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 23px; background: #000; }
.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.how-step { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); transition: border-color .15s, transform .15s; }
.how-step:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateX(3px); }
.how-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--on-accent); background: var(--accent-fill); box-shadow: 0 6px 14px color-mix(in srgb, var(--accent-fill) 35%, transparent); }
.how-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.how-step > div { display: grid; gap: 2px; min-width: 0; }
.how-num { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.how-step strong { font-size: 1rem; line-height: 1.25; }
.how-step p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.how-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.how-rule { display: grid; align-content: start; gap: 6px; padding: 14px; border-radius: 14px; background: linear-gradient(160deg, var(--accent-soft), var(--bg) 60%); border: 1px solid var(--border); }
.how-rule strong { display: flex; align-items: center; gap: 8px; }
.how-rule .ico { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.how-rule p { margin: 0; font-size: .85rem; color: var(--muted); }
.points-strip { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.points-strip span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 8px; font-size: .76rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.points-strip .p1 { color: #fff; background: var(--gold); border-color: transparent; }
.points-strip .p2 { color: #fff; background: var(--silver); border-color: transparent; }
.points-strip .p3 { color: #fff; background: var(--bronze); border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .how-step { transition: none; } .how-step:hover { transform: none; } }
@media (max-width: 720px) {
  .how-grid { grid-template-columns: 1fr; }
  .phone { max-width: 210px; }
  .how-rules { grid-template-columns: 1fr; }
}

/* ---- The standings' page: its pickers, and each exhibition's result ---- */
.card-head .toolbar { margin: 0; justify-content: flex-end; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.res-card { display: grid; align-content: start; gap: 10px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.res-head { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); text-decoration: none; }
.res-head:hover .res-name, .res-head:focus-visible .res-name { color: var(--accent); }
.res-name { font-size: 1.05rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.res-card .mini-rank .val b { color: var(--text); }
.res-rest { list-style: none; margin: 0; padding: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; border-top: 1px dashed var(--border); font-size: .82rem; }
.res-rest li { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.res-rest .res-pos { flex: none; width: 2.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.res-rest .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-rest .val { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .tab-panel .card-head, .card-head:has(.toolbar) { flex-wrap: wrap; row-gap: 10px; } .card-head .toolbar { width: 100%; justify-content: flex-start; } }

/* ---- A choice as a pill that opens its list (picker.js): the year, the month
   and the season of the standings ---- */
.pick { position: relative; display: inline-block; }
.pick-btn { display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px 6px 14px; border-radius: 999px; cursor: pointer;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); font: inherit; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.pick-label { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pick-value { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick-chevron { width: 24px; height: 24px; padding: 4px; border-radius: 50%; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  color: var(--accent); background: var(--accent-soft); transition: transform .2s, background-color .15s, color .15s; }
.pick-btn:hover:not(:disabled), .pick-btn:focus-visible, .pick.is-open .pick-btn { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); outline: none; }
.pick.is-open .pick-chevron { transform: rotate(180deg); color: var(--on-accent); background: var(--accent-fill); }
.pick-btn:disabled { cursor: default; opacity: 1; }
.pick-btn:disabled .pick-chevron { display: none; }
.pick-btn:disabled { padding-right: 14px; }
.pick-menu { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; min-width: 100%; width: max-content; max-width: min(320px, 86vw); max-height: min(60vh, 320px); overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 6px; list-style: none; display: grid; gap: 2px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgb(0 0 0 / .28); animation: pick-in .14s ease-out; }
.pick-menu[hidden] { display: none; }
@keyframes pick-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.pick-menu [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 9px 10px 9px 12px; border-radius: 10px; cursor: pointer;
  font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick-menu [role="option"]:hover, .pick-menu [role="option"]:focus-visible { background: var(--bg); outline: none; }
.pick-menu [role="option"][aria-selected="true"] { color: var(--accent); background: var(--accent-soft); }
.pick-check { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.pick-menu [aria-selected="true"] .pick-check { visibility: visible; }
.card-head .toolbar { gap: 8px; }
@media (prefers-reduced-motion: reduce) { .pick-menu { animation: none; } .pick-chevron { transition: none; } }
@media (max-width: 600px) { .pick-menu { right: auto; left: 0; } }
.card-head:has(.toolbar) { flex-wrap: wrap; row-gap: 10px; }
.card-head .toolbar { flex-wrap: wrap; margin-left: auto; }

/* ---- Phones ---- */
@media (max-width: 600px) {
  /* The tabs all fit: each one its icon over a small name, sharing the width. */
  .tabs { overflow: visible; gap: 2px; }
  .tabs button { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 3px; padding: .5rem .15rem; font-size: .68rem; font-weight: 600; }
  .tabs button svg { width: 19px; height: 19px; }
  .tabs button .count { position: absolute; transform: translate(16px, -6px); }
  .tabs button { position: relative; }
  /* The landing's instructions: the title over its line, the points in one row. */
  .how > .card-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .points-strip { flex-wrap: nowrap; }
  .points-strip span { flex: 1 1 0; min-width: 0; padding: 0; }
  .how-step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .how-icon { width: 40px; height: 40px; border-radius: 12px; }
}
@media (max-width: 600px) {
  .card-head .seg button { font-size: .76rem; padding: .4rem .15rem; }
  .seg .count { margin-left: 2px; padding: 0 5px; }
}
/* Phones: the tabs as their icons only (the name stays for screen readers). */
@media (max-width: 600px) {
  .tabs button { font-size: 0; gap: 0; padding: .6rem .15rem; }
  .tabs button svg { width: 22px; height: 22px; }
  .tabs button .count { font-size: .68rem; transform: translate(18px, -9px); }
}


/* The alerts, as in Combee: a card per platform inside the alerts' one, each folding at its title. */
.tg-head { display: flex; align-items: center; gap: 8px; margin: 0; }
.tg-head > .ico { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tg-summary { font-size: .85rem; font-weight: 500; }
.tg-toggle { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; padding: 0; border-radius: 50%;
  color: var(--muted); background: none; border: 1px solid var(--border); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.tg-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.tg-toggle:hover, .tg-toggle:focus-visible { color: #fff; background: var(--brand); border-color: var(--brand); outline: none; }
.tg-card.is-folded .tg-toggle svg { transform: rotate(180deg); }
.tg-card.is-folded .tg-body { display: none; }
.tg-card.is-folded { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tg-card.is-folded:hover { border-color: var(--brand); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent); }
.alerts-cards { display: grid; gap: 10px; }
.alerts-cards > .card { margin: 0; background: var(--bg); box-shadow: none; }
.alerts-frame > .card-title { margin-bottom: .7rem; }
.tg-card .tg-off { margin: .6rem 0 0; color: var(--danger); }

/* ---- A player's page (/participante/<id>), as Combee's user page: admins only ---- */
/* ---- A user's page (/user/<id>): admins only ---- */
.us-card { display: grid; gap: 16px; }
.us-head { display: flex; align-items: center; gap: 18px; padding-bottom: 16px; border-bottom: 2px solid var(--accent); }
.us-pic { position: relative; flex: none; width: 104px; height: 104px; border-radius: 50%; padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--g2)); }
.us-pic img, .us-pic-empty { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--surface); background: var(--bg); font-size: 2.2rem; font-weight: 800; color: var(--accent); box-sizing: border-box; }
.us-head-text { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.us-head h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; overflow-wrap: anywhere; }
.us-head .mm-tags { margin-top: 4px; }
.us-figures { grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); }
.us-types { display: grid; gap: 8px; }
.us-type-list { display: flex; flex-wrap: wrap; gap: 6px; }
.us-type-list .type-chip { font-size: .78rem; padding: .2rem .65rem; }
.us-note { margin: 0; }
.us-communities, .us-meetups { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.us-meetups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.us-community, .us-meetup { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: inherit; text-decoration: none; background: var(--bg); border: 1px solid var(--border); transition: border-color .15s, background-color .15s; }
.us-community:hover, .us-community:focus-visible, .us-meetup:hover, .us-meetup:focus-visible {
  border-color: var(--accent); background: var(--accent-soft); outline: none; }
.us-community .avatar-wrap { flex: none; }
.us-community-text, .us-meetup-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.us-community-text strong, .us-meetup-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-go { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.us-meetup { align-items: flex-start; }
.us-thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; border: 2px solid var(--type-color);
  background: color-mix(in srgb, var(--type-color) 22%, var(--surface)); }
.us-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.us-meetup-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; } /* clear of the day and community under them */
.us-meetup .muted { display: flex; align-items: center; gap: 5px; }
.us-meetup .ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.us-state { padding: 0 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.6; color: var(--muted); border: 1px solid var(--border); }
.us-state.is-in { color: #fff; background: var(--ok); border-color: var(--ok); }
.us-state.is-next { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.us-state.is-org { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
@media (max-width: 600px) {
  .us-head { gap: 14px; }
  .us-pic { width: 80px; height: 80px; padding: 3px; }
  .us-head h1 { font-size: 1.3rem; }
  .us-meetups { grid-template-columns: minmax(0, 1fr); }
}
/* A person's name linking to their page (participants, raffle, top). */
.person-link { color: inherit; text-decoration: none; }
.person-link:hover, .person-link:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; outline: none; }
.mm-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mm-state { padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; border: 1px solid var(--border); color: var(--muted); }
.mm-state.is-next { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.mm-state.is-live { color: #fff; background: var(--ok); border-color: var(--ok); }
.mm-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; }
.mm-figures > div { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.mm-figures strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.mm-figures span { font-size: .72rem; color: var(--muted); }
.us-pic { background: linear-gradient(135deg, var(--accent-fill), var(--g2)); }
.us-years { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.us-meetup .poke { margin: 2px 0 0 2px; }
.us-result { font-variant-numeric: tabular-nums; }
.us-result b { color: var(--text); }
.us-state.is-out { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 50%, var(--border)); }
.us-state.is-wait { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, var(--border)); }
.us-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; font-size: .88rem; font-weight: 600; text-decoration: none; }
.us-back .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rows .person-link { font-weight: 700; }

/* The landing's three rule tiles: a line, something to look at and a note, so
   they weigh alike. The shiny one works its bonus out: a weight, its factor and
   what it counts as, a row for each way an exhibition can go. */
.how-rule { gap: 8px; }
.how-rule .how-note { margin-top: auto; padding-top: 2px; font-size: .8rem; }
.points-strip { flex-wrap: nowrap; margin: 0; }
.points-strip span { flex: 1 1 0; min-width: 0; padding: 0; }
.bonus { display: grid; margin: 0; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.bonus-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; padding: 6px 10px; }
.bonus-row + .bonus-row { border-top: 1px dashed var(--border); }
.bonus-goal { display: inline-flex; align-items: center; gap: 5px; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.bonus-goal svg { width: 14px; height: 14px; padding: 2px; border-radius: 50%; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; background: var(--accent-soft); }
.bonus-eq { display: inline-flex; align-items: baseline; gap: 5px; margin-left: auto; font-size: .84rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bonus-num { font-weight: 600; color: var(--muted); }
.bonus-op { padding: 0 7px; border-radius: 999px; font-size: .76rem; font-weight: 800; line-height: 1.5; color: #5a3d00; background: linear-gradient(135deg, #ffe89a, #f6c544); }
.bonus-is { color: var(--muted); font-weight: 700; }
.bonus-res { font-size: .98rem; font-weight: 900; color: var(--accent); }
.no-list { display: flex; flex-wrap: wrap; gap: 5px; }
.no-list span { padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 800; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
@media (min-width: 721px) { .how-rules { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); } }

/* The account button's pill: videos waiting for review. */
.nav-account-btn { position: relative; }
.nav-badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; box-sizing: border-box; display: grid; place-items: center;
  border-radius: 999px; font: 800 .68rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums;
  color: #fff; background: var(--accent-fill); box-shadow: 0 0 0 2px var(--surface); }
a.nav-role { text-decoration: none; }
a.nav-role:hover { color: var(--on-accent); background: var(--accent-fill); border-color: transparent; }
/* Five tiles with none left over: the first two share a row, the other three the next. */
.state-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.state-tile { grid-column: span 2; }
.state-tile:nth-child(-n+2) { grid-column: span 3; }
.state-note { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 600px) {
  .state-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .state-tile { grid-column: span 1; flex-direction: row; align-items: center; }
  .state-tile:nth-child(-n+2) { grid-column: span 1; }
  .state-tile:first-child { grid-column: 1 / -1; }
  .state-tile:not(:first-child) { flex-direction: column; align-items: flex-start; gap: 7px; }
}

/* Three status tiles: one row (on phones the bot's over the other two). */
.state-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.state-tile, .state-tile:nth-child(-n+2) { grid-column: span 1; }
@media (max-width: 600px) { .state-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .state-tile:first-child { grid-column: 1 / -1; } }
/* The landing's demo just plays: nothing in it can be pressed. */
.phone video { pointer-events: none; }

/* An entry's still in the ranking: a small window onto the Pokémon (the frame is
   a whole phone screen; it sits in its upper third), that opens it whole. */
.shot { flex: none; display: block; width: 44px; height: 44px; padding: 0; overflow: hidden; border-radius: 12px; cursor: zoom-in;
  background: var(--bg); border: 2px solid var(--border); transition: border-color .15s, transform .15s; }
.shot img { display: block; width: 250%; max-width: none; margin: -100% 0 0 -75%; }
.shot:hover, .shot:focus-visible { border-color: var(--accent); transform: scale(1.06); outline: none; }
.shot.is-empty { cursor: default; border-style: dashed; }
.shot-modal { width: min(420px, calc(100vw - 32px)); padding: 14px; }
.shot-modal .modal-head { margin-bottom: 10px; }
.shot-modal img { display: block; width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 12px; background: #000; }
@media (max-width: 560px) { .shot { width: 38px; height: 38px; border-radius: 10px; } }

/* The site panel: a Pokémon's variants (costumes, forms) to choose from, by their icon. */
.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; max-height: 190px; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.variants button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px 4px; border-radius: 10px; font-size: .62rem; font-weight: 600; line-height: 1.2;
  color: var(--muted); background: var(--surface); border: 2px solid transparent; }
.variants button img { width: 44px; height: 44px; object-fit: contain; }
.variants button:hover { border-color: var(--border); color: var(--text); }
.variants button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---- Where a value lies among its species' (common.js gauge) ---- */
.gauge { display: block; min-width: 72px; margin-top: 5px; }
.gauge-bar { position: relative; display: block; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--accent) 45%, transparent)); }
.gauge-mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--muted); opacity: .6; }
.gauge-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
.gauge.is-out .gauge-dot { background: var(--warn, #d08a00); box-shadow: 0 0 0 1px var(--warn, #d08a00); }
.gauge-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.entry-gauge { display: grid; gap: 2px; }
.entry-gauge .gauge { margin-top: 4px; }

/* ---- A form's field that isn't a <label> (its control is a button that opens something) ---- */
.field { display: grid; gap: .25rem; align-content: start; min-width: 0; }
.field-label { font-size: .85rem; color: var(--muted); }
.sheet .fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .sheet .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fields > .is-wide { grid-column: span 2; }
@media (max-width: 420px) { .sheet .fields { grid-template-columns: minmax(0, 1fr); } .fields > .is-wide { grid-column: auto; } }

/* The picker as a field: as wide as its place, like an input */
.pick.is-field { display: block; }
.pick.is-field .pick-btn { width: 100%; justify-content: space-between; padding: .5rem .5rem .5rem .75rem; border-radius: 10px; min-height: 2.5rem; }
.pick.is-field .pick-label { display: none; }
.pick.is-field .pick-value { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.pick.is-field .pick-menu { left: 0; right: 0; width: auto; max-width: none; max-height: min(50vh, 260px); }

/* ---- A day and its time (datetime.js) ---- */
.dt { position: relative; }
.dt-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 2.5rem; padding: .5rem .75rem; border-radius: 10px; cursor: pointer; text-align: left;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); font: inherit; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.dt-btn:hover, .dt-btn:focus-visible, .dt.is-open .dt-btn { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); outline: none; }
.dt-ico { width: 26px; height: 26px; padding: 5px; flex: none; border-radius: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); background: var(--accent-soft); }
.dt-value { font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-value.is-empty { font-weight: 400; color: var(--muted); }
.dt-pop { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: 296px; max-width: 86vw; padding: 12px; display: grid; gap: 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 16px 40px rgb(0 0 0 / .32); animation: pick-in .14s ease-out; }
.dt-pop[hidden] { display: none; }
.dt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dt-month { font-size: .95rem; }
.dt-nav { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--accent); background: var(--accent-soft); border: 0; }
.dt-nav:hover, .dt-nav:focus-visible { color: var(--on-accent); background: var(--accent-fill); outline: none; }
.dt-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dt-week, .dt-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dt-week span { font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.dt-days button { aspect-ratio: 1; padding: 0; border-radius: 50%; cursor: pointer; font: inherit; font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--text); background: none; border: 1px solid transparent; }
.dt-days button.is-other { color: var(--muted); opacity: .55; }
.dt-days button.is-today { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.dt-days button:hover, .dt-days button:focus-visible { background: var(--accent-soft); outline: none; }
.dt-days button[aria-pressed="true"] { color: var(--on-accent); background: var(--accent-fill); font-weight: 700; opacity: 1; }
.dt-time { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.dt-time-label { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dt-clock { display: inline-flex; align-items: center; gap: 4px; }
.dt-clock input { width: 2.6rem; padding: .3rem 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; border-radius: 8px; }
.dt-quick { display: flex; flex-wrap: wrap; gap: 4px; flex-basis: 100%; }
.dt-quick button { padding: 3px 9px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .76rem; font-variant-numeric: tabular-nums; color: var(--text); background: var(--bg); border: 1px solid var(--border); }
.dt-quick button:hover, .dt-quick button:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }
.dt-foot { display: flex; justify-content: space-between; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .dt-pop { animation: none; } }

/* ---- A field that suggests as you type (combo.js) ---- */
.combo { position: relative; }
.combo-menu { left: 0; right: 0; width: auto; max-width: none; }
.combo-option { display: flex; align-items: center; gap: 10px; min-width: 0; }
.combo-option img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.combo-menu [role="option"][aria-selected="true"] .pick-check { visibility: hidden; }

/* ---- An exhibition's ranking: each one in a pill (place, still, name, weight, points) ---- */
.rank-pills { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.rank-pill { display: grid; grid-template-columns: auto auto minmax(0, 1fr) minmax(170px, 240px) auto; align-items: center; gap: 12px;
  padding: 10px 14px 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); transition: border-color .15s, box-shadow .15s; }
.rank-pill:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.rank-pill.is-p1 { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); }
.rank-pill.is-p2 { border-color: color-mix(in srgb, var(--silver) 55%, var(--border)); }
.rank-pill.is-p3 { border-color: color-mix(in srgb, var(--bronze) 55%, var(--border)); }
.rank-pill .shot { border-radius: 10px; }
.rank-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-value { min-width: 0; display: grid; gap: 2px; }
.rank-figures { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 2px 8px; font-variant-numeric: tabular-nums; }
.rank-read { font-weight: 700; }
.rank-bonus { font-size: .74rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.rank-final { font-weight: 800; color: var(--gold); white-space: nowrap; }
.rank-value .gauge { margin-top: 3px; }
.rank-points { min-width: 4.6rem; padding: 5px 12px; border-radius: 10px; text-align: center; font-size: .78rem; white-space: nowrap; color: var(--accent); background: var(--accent-soft); }
.rank-points b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.rank-points.is-zero { color: var(--muted); background: transparent; border: 1px dashed var(--border); }
@media (max-width: 640px) {
  .rank-pill { grid-template-columns: auto auto minmax(0, 1fr) auto; row-gap: 8px; padding: 10px 12px 12px; }
  .rank-value { grid-column: 1 / -1; grid-row: 2; padding: 0 4px; }
  .rank-figures { justify-content: flex-start; }
  .rank-points { grid-column: 4; grid-row: 1; }
}

/* Those without points, folded under a ranking (common.js moreRows) */
.rank-more { margin-top: 12px; }
.rank-more > summary { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 12px; list-style: none; cursor: pointer;
  font-size: .85rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); }
.rank-more > summary::-webkit-details-marker { display: none; }
.rank-more > summary:hover, .rank-more > summary:focus-visible { border-style: solid; outline: none; }
.rank-more > summary .chevron { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.rank-more[open] > summary .chevron { transform: rotate(180deg); }
.rank-more .when-open, .rank-more[open] .when-closed { display: none; }
.rank-more[open] .when-open { display: inline; }
.rank-more .rank-pills, .rank-more .top-rest { margin-top: 10px; }

/* ---- An exhibition's prizes: the first three's, and the raffle's ---- */
.prize-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.prize-panels > .card { margin: 0; }
.prize-panel { display: grid; gap: 12px; align-content: start; }
.prize-panel h2 { margin: 0; font-size: 1rem; }
.prize-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prize-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.prize-who { flex: 1 1 110px; min-width: 0; display: grid; gap: 1px; }
.prize-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prize-state { padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; color: var(--muted); border: 1px dashed var(--border); }
.prize-state.is-given { color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.prize-list li.is-given { border-color: color-mix(in srgb, var(--ok) 30%, var(--border)); }
.prize-gift { display: grid; place-items: center; width: 26px; height: 26px; font-size: 1rem; }
.prize-toggle svg { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .prize-panels { grid-template-columns: minmax(0, 1fr); }
  /* The button, as a small round icon next to the prize's state, all in one line. */
  .prize-list li { flex-wrap: nowrap; }
  .prize-who { flex: 1 1 0; }
  .prize-toggle { flex: none; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
  .prize-toggle svg { display: block; }
  .prize-toggle span { display: none; }
}
@media (max-width: 900px) { .prize-panels.is-admin { grid-template-columns: minmax(0, 1fr); } }

/* ---- An exhibition's days: two leaves of a calendar, and what is left between them (common.js whenLeaves) ---- */
.cal-range { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.cal { display: grid; grid-template-columns: auto auto; grid-template-areas: "label label" "leaf time"; align-items: center; gap: 6px 12px; }
.cal { justify-content: start; }
.cal:last-child { grid-template-areas: "label label" "time leaf"; text-align: right; justify-content: end; }
.cal-label { grid-area: label; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cal-leaf { grid-area: leaf; width: 58px; overflow: hidden; display: grid; text-align: center; border-radius: 12px; background: #f4f2ed; box-shadow: 0 2px 8px rgb(0 0 0 / .22); }
.cal-month { padding: 3px 0 2px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--accent-fill); }
.cal-day { padding: 2px 0 5px; font-size: 1.55rem; font-weight: 800; line-height: 1.1; color: #25232a; font-variant-numeric: tabular-nums; }
.cal-time { grid-area: time; display: grid; gap: 1px; }
.cal-time b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.cal-time span { font-size: .8rem; color: var(--muted); text-transform: capitalize; }
.cal-between { display: grid; gap: 8px; justify-items: center; text-align: center; min-width: 0; }
.cal-track { width: 100%; height: 6px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.cal-track span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.cal-range.is-finished .cal-track span { background: var(--muted); opacity: .5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 560px) {
  .cal-range { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .cal-between { grid-column: 1 / -1; grid-row: 2; }
  .cal { gap: 6px 8px; }
  .cal-leaf { width: 50px; }
  .cal-day { font-size: 1.35rem; }
  .cal-time b { font-size: 1rem; }
}
/* In a card: the same, smaller, whatever the window's width. */
.cal-range.is-compact { grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border); }
.cal-range.is-compact .cal-between { grid-column: 1 / -1; grid-row: 2; gap: 6px; }
.cal-range.is-compact .cal { gap: 4px 8px; }
.cal-range.is-compact .cal-leaf { width: 44px; border-radius: 10px; }
.cal-range.is-compact .cal-month { font-size: .58rem; padding: 2px 0 1px; }
.cal-range.is-compact .cal-day { font-size: 1.15rem; padding: 1px 0 3px; }
.cal-range.is-compact .cal-time b { font-size: .95rem; }
.cal-range.is-compact .cal-time span { font-size: .74rem; }
.cal-range.is-compact .cal-left { font-size: .84rem; padding: 3px 12px; }
.cal-range.is-compact .cal-left.is-soon { font-size: .9rem; }


/* What is left of an exhibition, framed; in its last day, lit up */
.cal-left { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 999px; font-size: .92rem; white-space: nowrap;
  color: var(--text); background: var(--bg); border: 1px solid var(--border); }
.cal-left svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cal-left.is-over { color: var(--muted); }
.cal-left.is-soon { color: var(--on-accent); background: var(--accent-fill); border-color: transparent; font-size: 1rem;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); animation: cal-soon 1.8s ease-in-out infinite; }
.cal-left.is-soon svg { stroke: currentColor; }
.cal-range.is-soon .cal-track { height: 8px; }
@keyframes cal-soon { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .cal-left.is-soon { animation: none; } }

/* ---- The panel's prizes: by what they are of, each a line that unfolds its own ---- */
.prize-groups { display: grid; gap: 6px; }
.prize-group { border-radius: 12px; background: var(--bg); border: 1px solid var(--border); overflow: hidden; }
.prize-group > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 12px; list-style: none; cursor: pointer; }
.prize-group > summary::-webkit-details-marker { display: none; }
.prize-group > summary:hover, .prize-group > summary:focus-visible { background: color-mix(in srgb, var(--accent-soft) 50%, transparent); outline: none; }
.prize-group-title { min-width: 0; display: grid; gap: 1px; }
.prize-group-title strong, .prize-group-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prize-group-icon { display: grid; place-items: center; width: 36px; height: 36px; font-size: 1.2rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); }
.prize-group .chevron { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.prize-group[open] .chevron { transform: rotate(180deg); }
.prize-group.is-done > summary strong { color: var(--muted); }
.prize-group .prize-list { padding: 4px 10px 10px; gap: 4px; }
.prize-group .prize-list li { padding: 6px 10px; background: var(--surface); }
.prize-group .prize-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.prize-group .prize-who a { font-weight: 700; color: inherit; text-decoration: none; }
.prize-group .prize-who a:hover { color: var(--accent); }

/* A row that opens what it is of, wherever it is clicked */
.rows > li.is-link { cursor: pointer; transition: border-color .15s, background-color .15s; }
.rows > li.is-link:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent-soft) 35%, var(--bg)); }

/* How many took part, over a card's first three */
.x-count { display: flex; align-items: center; gap: 6px; margin: 2px 0 -4px; font-size: .8rem; color: var(--muted); }
.x-count b { color: var(--text); font-variant-numeric: tabular-nums; }
.x-count .ico { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Over: nothing between its dates, and no row kept for it. */
.cal-range.is-compact .cal-between:empty { display: none; }
@media (max-width: 560px) { .cal-between:empty { display: none; } }

/* The landing on a phone: both buttons in one line, under the name and the picture, as wide as the card. */
@media (max-width: 720px) {
  .hero-main { grid-template-areas: "brand mascot" "tag mascot" "actions actions"; align-items: start; row-gap: 0; }
  .hero-text { display: contents; }
  .hero-brand { grid-area: brand; }
  .hero-tagline { grid-area: tag; }
  .hero .hero-mascot { grid-area: mascot; }
  .hero-actions { grid-area: actions; flex-wrap: nowrap; gap: 8px; margin-top: 16px; }
  .hero-actions .btn-hero { flex: 1 1 0; min-width: 0; justify-content: center; padding: .6rem .5rem; font-size: .92rem; white-space: nowrap; }
}

/* ---- A Pokémon's history: with what it was won before ---- */
.record-goal { margin: 0; padding: 8px 12px; border-radius: 12px; font-size: .9rem; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.records { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.record { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; color: var(--text); text-decoration: none; background: var(--bg); border: 1px solid var(--border); transition: border-color .15s, transform .15s; }
.record:hover, .record:focus-visible { border-color: var(--accent); transform: translateY(-1px); outline: none; }
.record.is-this { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); }
.record-label { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.record-value { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.record-value .rank-final { font-size: 1rem; }
.record-who { font-weight: 700; }
.history-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.history-list a { display: grid; grid-template-columns: 5.2rem minmax(0, 1.5fr) minmax(0, 1fr) 11.5rem; align-items: baseline; gap: 10px; padding: 7px 12px; border-radius: 10px; color: var(--text); text-decoration: none; background: var(--bg); border: 1px solid var(--border); }
.history-list a:hover, .history-list a:focus-visible { border-color: var(--accent); outline: none; }
.history-event, .history-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-value { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
@media (max-width: 560px) { .history-list a { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; } .history-day, .history-event { grid-column: 1 / -1; } }

/* A card that folds: its heading opens and closes it. */
.fold > summary { list-style: none; cursor: pointer; margin: -14px; padding: 14px; border-radius: inherit; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary.card-head { display: flex; align-items: center; gap: 10px; }
.fold > summary h2 { margin: 0 auto 0 0; }
.fold > summary:hover, .fold > summary:focus-visible { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); outline: none; }
.fold > summary .chevron { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.fold[open] > summary .chevron { transform: rotate(180deg); }
.fold[open] > summary { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.fold-body { display: grid; gap: 12px; padding-top: 12px; }
.fold-body > * { margin: 0; }

/* ---- Account menu's tools: a random weight around a Pokémon's average (weight-tool.js) ---- */
button.nav-tile { width: 100%; cursor: pointer; text-align: left; }
.weight-tool.sheet { width: min(460px, calc(100vw - 32px)); }
.weight-kind { display: flex; }
.weight-kind button { flex: 1 1 0; }
.weight-facts { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: .9rem; line-height: 1.45; background: var(--bg); border: 1px solid var(--border); }
.weight-facts img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.weight-result { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 14px; border-radius: 14px; color: var(--on-accent); background: var(--accent-fill); }
.weight-result b { font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.weight-result span { font-size: 1.1rem; font-weight: 700; opacity: .9; }
.weight-result.is-new { animation: weight-pop .35s ease-out; }
.weight-tool .msg:empty { display: none; }
@keyframes weight-pop { from { transform: scale(.9); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .weight-result.is-new { animation: none; } }

/* ---- The panel's players: a line each, the whole of it a link to their page ---- */
.people-search { width: min(220px, 46vw); padding: .32rem .8rem; border-radius: 999px; font-size: .86rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 6px; }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 7px 10px 7px 8px; border-radius: 12px;
  color: var(--text); text-decoration: none; background: var(--bg); border: 1px solid var(--border); transition: border-color .15s, background-color .15s; }
.person:hover, .person:focus-visible { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); background: color-mix(in srgb, var(--accent-soft) 35%, var(--bg)); outline: none; }
.person-face { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; color: var(--accent); background: var(--accent-soft); }
.person-who { min-width: 0; display: grid; gap: 0; line-height: 1.25; }
.person-who strong, .person-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-stats { display: flex; gap: 4px; }
.person-stats .entry-tag { padding: 1px 7px; font-size: .72rem; font-variant-numeric: tabular-nums; }
.person-points { min-width: 3.6rem; text-align: right; font-size: .76rem; color: var(--accent); white-space: nowrap; }
.person-points b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.person-points.is-zero { color: var(--muted); }
.person .chevron { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { .person { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; } .person .chevron { display: none; } }

/* A period's prizes (the standings page): its winners side by side when there is room */
.period-prizes .prize-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.period-prizes.is-admin .prize-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }

/* A prize nobody came for: its "draw again" button, an icon on a phone */
.prize-redraw svg { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prize-redraw svg circle { fill: currentColor; stroke: none; }
@media (max-width: 640px) {
  .prize-redraw { flex: none; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
  .prize-redraw svg { display: block; }
  .prize-redraw span { display: none; }
}

/* A prize nobody came for: crossed out where it was */
.prize-list li.is-forfeited { opacity: .62; border-style: dashed; }
.prize-list li.is-forfeited s { text-decoration-thickness: 2px; text-decoration-color: var(--danger); }
.prize-list li.is-forfeited .prize-state { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.prize-panels.is-one { grid-template-columns: minmax(0, 1fr); }
.prize-panels:not(.is-one) .period-prizes .prize-list { grid-template-columns: minmax(0, 1fr); }

/* A field inside a confirmation (how many prizes to raffle, when publishing) */
.confirm-field { display: grid; gap: 4px; margin: 12px 0 6px; font-size: .85rem; color: var(--text); }
.confirm-field input { max-width: 7rem; }

/* How long is left to collect a prize, next to its state */
.prize-left { padding: 2px 8px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); background: var(--bg); border: 1px solid var(--border); }
.prize-left.is-soon { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.prize-left.is-over { color: #fff; background: var(--danger); border-color: transparent; }
@media (max-width: 640px) { .prize-left { font-size: .7rem; padding: 2px 6px; } }

/* A prize's line on a phone: who and its buttons on top; under the name, its state at one end and the time left at the other. */
@media (max-width: 640px) {
  .prize-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 6px 8px; padding: 8px 10px; }
  .prize-list li > :first-child { grid-column: 1; grid-row: 1; }
  .prize-list .prize-who { grid-column: 2; grid-row: 1; }
  .prize-list .prize-redraw { grid-column: 3; grid-row: 1; }
  .prize-list .prize-toggle { grid-column: 4; grid-row: 1; }
  .prize-list .prize-state { grid-column: 2 / -1; grid-row: 2; justify-self: start; }
  .prize-list .prize-left { grid-column: 2 / -1; grid-row: 2; justify-self: end; }
  .prize-group .prize-who { display: grid; gap: 1px; }
  .prize-name, .prize-who a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---- Publishing an exhibition's results: its podium and what will happen, step by step ---- */
.publish-modal.sheet { width: min(600px, calc(100vw - 32px)); }
.publish-top { display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.publish-podium { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.publish-podium li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.publish-podium strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.publish-podium span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.publish-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.publish-steps > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.publish-steps > li:last-child { border-bottom: 0; }
.publish-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 1.05rem; background: var(--accent-soft); }
.publish-steps strong { display: block; font-size: .95rem; }
.publish-steps p { margin: 2px 0 0; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.publish-steps p b { color: var(--text); }
.publish-stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.publish-stepper button { width: 34px; height: 34px; padding: 0; border-radius: 10px; font-size: 1.1rem; font-weight: 700; line-height: 1; }
.publish-stepper input { width: 3.6rem; height: 34px; padding: 0 .3rem; text-align: center; font-weight: 800; font-size: 1.05rem; border-radius: 10px; -moz-appearance: textfield; appearance: textfield; }
.publish-stepper input::-webkit-outer-spin-button, .publish-stepper input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.publish-stepper span { margin-left: 4px; }
.publish-warning { margin: 0; padding: 8px 12px; border-radius: 10px; font-size: .84rem; color: var(--warn); border: 1px dashed color-mix(in srgb, var(--warn) 50%, transparent); }
.publish-modal .sheet-foot button[type="submit"] { display: inline-flex; align-items: center; gap: 8px; }
.publish-modal .sheet-foot button[type="submit"] svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .publish-top { align-items: flex-start; } .publish-top .poke { width: 52px; height: 52px; } .publish-top .poke-state { display: none; } }

/* ---- The panel's exhibitions: grouped by what they are up to, a compact line each ---- */
.xrows { gap: 5px; }
.xrows > li.xrow-group { display: block; padding: 10px 2px 2px; background: none; border: 0; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.xrows > li.xrow-group:first-child { padding-top: 0; }
.xrows > li.is-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 7px 10px; }
.xrow-text { min-width: 0; display: grid; gap: 1px; line-height: 1.3; }
.xrow-text strong { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.xrow-text strong a { flex: none; color: inherit; text-decoration: none; }
.xrow-text strong span, .xrow-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xrow-text strong span { font-weight: 400; }
.xrow-tags { display: flex; gap: 4px; }
.xrow-tags .entry-tag { padding: 1px 8px; font-variant-numeric: tabular-nums; }
.xrow-actions { display: flex; gap: 4px; }
.xrow-btn { display: inline-grid; grid-auto-flow: column; place-items: center; gap: 6px; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 10px; font-size: .82rem; font-weight: 700;
  color: var(--muted); background: transparent; border: 1px solid transparent; }
.xrow-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xrow-btn:hover:not(:disabled), .xrow-btn:focus-visible { color: var(--text); background: var(--surface); border-color: var(--border); outline: none; }
.xrow-btn.is-danger:hover, .xrow-btn.is-danger:focus-visible { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.xrow-btn.is-main { padding: 0 12px; color: var(--on-accent); background: var(--accent-fill); }
.xrow-btn.is-main:hover:not(:disabled) { color: var(--on-accent); background: var(--accent-fill); filter: brightness(1.1); border-color: transparent; }
.xrow-btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) {
  .xrows > li.is-link { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 10px; }
  .xrows .cal-mini { grid-column: 2; grid-row: 2; justify-self: start; }
  .xrow-tags { grid-column: 2; grid-row: 2; justify-self: end; }
  .xrow-actions { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .xrow-text strong { flex-direction: column; gap: 0; align-items: flex-start; }
  .xrow-text strong span { max-width: 100%; }
  .xrow-text > span { white-space: normal; } /* what wins and its dates, whole, on as many lines as they take */
  .xrow-btn.is-main { padding: 0 8px; }
  .xrow-btn.is-main span { display: none; }
  .xrow-btn { min-width: 30px; padding: 0 6px; }
  /* "Nueva exhibición", as its plus alone */
  .btn-new span { display: none; }
  .btn-new { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 50%; }
}

/* Two tiny leaves of a calendar, for a line of a list (common.js miniLeaves) */
.cal-mini { display: inline-flex; align-items: center; gap: 5px; }
.cal-mini .cal-leaf { width: 34px; border-radius: 8px; box-shadow: 0 1px 4px rgb(0 0 0 / .25); }
.cal-mini .cal-month { padding: 1px 0 0; font-size: .5rem; letter-spacing: .06em; }
.cal-mini .cal-day { padding: 0 0 2px; font-size: .92rem; line-height: 1.15; }
.cal-mini svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- A page's own buttons, at the right of its heading (as Combee's community page): for the site's admins ---- */
.community-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; }
.admin-link { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); border: 1px solid var(--border); background: var(--surface);
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s; }
.admin-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-link:hover, .admin-link:focus-visible { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--accent-soft); outline: none; }
.admin-link:focus-visible { box-shadow: 0 0 0 2px var(--accent); }

/* The panel's exhibitions over long ago: hidden until asked for */
.xrows > li.is-extra { display: none; }
.xrows.show-all > li.is-extra { display: grid; }
.xrows > li.xrow-more { display: block; padding: 0; background: none; border: 0; }
.xrow-more button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 8px 12px; border-radius: 12px; font-size: .85rem; font-weight: 700;
  color: var(--accent); background: var(--accent-soft); border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); }
.xrow-more button:hover, .xrow-more button:focus-visible { border-style: solid; outline: none; }
.xrow-more .chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.xrow-more [aria-expanded="true"] .chevron { transform: rotate(180deg); }
.xrow-more .when-open, .xrow-more [aria-expanded="true"] .when-closed { display: none; }
.xrow-more [aria-expanded="true"] .when-open { display: inline; }

/* The panel's seasons, as the exhibitions over them: the same lines, with a crown where the Pokémon goes */
.xrows > li.is-plain { cursor: default; }
.season-icon { font-size: 1.05rem; line-height: 1; }
.xrow-text strong .season-name { font-weight: 700; }
@media (max-width: 640px) { .xrow-text strong .season-name { white-space: normal; } }
.xrows > li.is-plain .xrow-tags:empty { display: none; }
.xrows > li.is-plain { grid-template-columns: auto minmax(0, 1fr) auto auto; }
@media (max-width: 640px) { .xrows > li.is-plain { grid-template-columns: auto minmax(0, 1fr) auto; } }

/* The panel's prizes: their two buttons (draw again, handed over) as round icons at any width */
.prize-group .prize-redraw, .prize-group .prize-toggle { flex: none; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.prize-group .prize-redraw svg, .prize-group .prize-toggle svg { display: block; }
.prize-group .prize-redraw span, .prize-group .prize-toggle span { display: none; }

/* The account menu's "Panel del sitio": the heading itself goes to the panel */
a.nav-section-title { text-decoration: none; border-radius: 6px; cursor: pointer; }
a.nav-section-title:hover, a.nav-section-title:focus-visible { text-decoration: underline; outline: none; }
a.nav-section-title .nav-go { width: 14px; height: 14px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-90deg); opacity: .8; }

/* ---- Configuración: the web's version and whether GitHub has a newer one (as Combee's, in Furfrou's colours) ---- */
.version-card { position: relative; }
.version-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.version-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgb(255 255 255 / .2); }
.version-state:empty { display: none; }
.version-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.version-state.is-ok { background: #fff; color: #17803d; }
.version-state.is-new { background: #fff; color: #8f1d2c; box-shadow: 0 0 0 3px rgb(255 255 255 / .35); }
.version-state.is-new::before { animation: version-pulse 1.4s ease-in-out infinite; }
.version-state.is-error { background: rgb(120 20 0 / .45); }
.version-state.is-off, .version-state.is-checking { opacity: .85; }
@keyframes version-pulse { 50% { opacity: .35; transform: scale(.7); } }
.version-facts code { font: 700 .82rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.version-check { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgb(255 255 255 / .2); cursor: pointer; }
.version-check[hidden] { display: none; }
.version-check:hover:not(:disabled), .version-check:focus-visible { background: rgb(255 255 255 / .32); outline: none; }
.version-check:disabled { cursor: default; opacity: .7; }
.version-check svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.version-check.is-spinning svg { animation: version-spin .9s linear infinite; }
@keyframes version-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .version-state.is-new::before, .version-check.is-spinning svg { animation: none; } }
.version-update { flex: 1 1 100%; display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / .96); color: #2a1a1d; }
.version-update[hidden] { display: none; }
.version-update p { margin: 0; }
.version-update-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.version-update-head span { font-size: .82rem; color: #7a5a5f; }
.version-update-head a { margin-left: auto; font-weight: 700; color: #8f1d2c; }
.version-how { font-size: .84rem; }
.version-how code { padding: 2px 6px; border-radius: 6px; background: #f7e9eb; font: .8rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.version-changelog { flex: 1 1 100%; border-radius: 14px; background: rgb(255 255 255 / .14); }
.version-changelog[hidden] { display: none; }
.version-changelog summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: .86rem; font-weight: 700; cursor: pointer; list-style: none; border-radius: 14px; }
.version-changelog summary::-webkit-details-marker { display: none; }
.version-changelog summary:hover, .version-changelog summary:focus-visible { background: rgb(255 255 255 / .12); outline: none; }
.version-changelog .chevron { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.version-changelog[open] .chevron { transform: rotate(180deg); }
.version-changelog summary b { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: #fff; color: #8f1d2c; font-size: .74rem; text-align: center; }
.version-changelog summary b[hidden] { display: none; }
.version-changelog-body { display: grid; gap: 10px; max-height: 340px; overflow: auto; padding: 0 12px 12px; }
.vc-entry { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / .96); color: #2a1a1d; font-size: .85rem; line-height: 1.45; }
.vc-entry header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.vc-entry header span { font-size: .78rem; color: #7a5a5f; }
.vc-entry header a { margin-left: auto; font-size: .8rem; font-weight: 700; color: #8f1d2c; }
.vc-entry.is-next { background: #f7e9eb; border: 1px dashed #c98a93; }
.vc-entry ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 4px; }
.vc-entry p { margin: 0; }
.vc-entry code { padding: 1px 5px; border-radius: 5px; background: rgb(143 29 44 / .1); font: .78rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.vc-empty { margin: 0; padding: 4px 4px 0; font-size: .84rem; opacity: .95; }
@media (max-width: 560px) {
  .version-facts { width: 100%; }
  .version-facts li { flex: 1 1 0; }
  .version-check { position: absolute; top: 14px; right: 14px; }
  .version-main { padding-right: 46px; }
}
