:root {
  --bg-0: #03060f;
  --bg-1: #0a1430;
  --ink: #e8eefc;
  --ink-2: #9fb0d4;
  --ink-3: #6b7ba0;
  --glass: rgba(14, 22, 44, 0.62);
  --glass-line: rgba(160, 190, 255, 0.14);
  --moon: #c9d6f0;          /* grigio-azzurro chiaro: segni e stati attivi */
  --moon-rgb: 201, 214, 240;
  --moon-ink: #0b1834;
  --accent: #ffffff;        /* white: selection, top rank, near deadlines (same as the selection on the globe) */
  --accent-rgb: 255, 255, 255;
  --accent-ink: #0b1834;
  --live: #9fdcc4;
  --past: #7d8bb0;
  --radius: 16px;
  --panel-w: 390px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: radial-gradient(120% 90% at 35% 45%, var(--bg-1) 0%, var(--bg-0) 70%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }

#stars, #globe { position: fixed; inset: 0; width: 100%; height: 100%; }
#globe { cursor: grab; touch-action: none; }
#globe.dragging { cursor: grabbing; }
#globe.pointing { cursor: pointer; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 18px; left: 22px; right: calc(var(--panel-w) + 40px);
  display: flex; align-items: center; gap: 22px; pointer-events: none; z-index: 15;
}
.topbar > * { pointer-events: auto; }
.brand {
  display: flex; align-items: center; gap: 8px; font-weight: 650; letter-spacing: .2px;
  border: 0; background: transparent; padding: 0; color: inherit;   /* it is a button: back to the world */
}
.brand:hover .brand-name { color: #fff; }
.brand:hover .brand-mark { color: var(--ink); }
.brand-mark { color: var(--moon); font-size: 20px; }
.brand-name { font-size: 18px; }

.search { position: relative; flex: 0 1 460px; }
.search input {
  width: 100%; height: 44px; padding: 0 44px 0 42px;
  border-radius: 999px; border: 1px solid var(--glass-line);
  background: var(--glass); color: var(--ink); font-size: 15px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: rgba(var(--moon-rgb),.55); box-shadow: 0 0 0 4px rgba(var(--moon-rgb),.12); }
.search-icon { position: absolute; left: 15px; top: 13px; width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.search kbd {
  position: absolute; right: 12px; top: 11px; font: 12px/20px ui-monospace, monospace;
  padding: 0 7px; border-radius: 6px; border: 1px solid var(--glass-line); color: var(--ink-3);
}
.suggest {
  position: absolute; top: 52px; left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  background: rgba(12, 19, 40, .94); border: 1px solid var(--glass-line); border-radius: 14px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,.45); max-height: 340px; overflow: auto;
}
.suggest li {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer;
}
.suggest li.active, .suggest li:hover { background: rgba(160,190,255,.1); }
.suggest .s-ico { width: 22px; text-align: center; }
.suggest .s-main { flex: 1; min-width: 0; }
.suggest .s-kind { font-size: 12px; color: var(--ink-3); }
.suggest .s-empty { color: var(--ink-3); cursor: default; }

/* ---------- filters ---------- */
.filters { position: fixed; top: 72px; left: 22px; display: flex; gap: 8px; z-index: 10; }
.fwrap { position: relative; display: flex; }
.fbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 14px;
  border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink-2);
  font-size: 13.5px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); white-space: nowrap;
}
.fbtn:hover, .fbtn.open { color: var(--ink); border-color: rgba(160,190,255,.35); }
.fbtn .caret { font-size: 10px; opacity: .6; }
.fbtn .fv.idle { color: var(--ink-3); }
.fbtn .fv.idle::before { content: "· "; }
.fbtn .fv { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.fwrap.active .fbtn { background: rgba(var(--moon-rgb),.14); border-color: rgba(var(--moon-rgb),.5); color: var(--ink); padding-right: 34px; }
.fwrap.active .fl { color: var(--moon); }
.fwrap.active .fl::after { content: ":"; }
.fwrap.active .caret { display: none; }
.fx {
  position: absolute; right: 5px; top: 5px; width: 24px; height: 24px; border-radius: 50%;
  border: 0; background: rgba(var(--moon-rgb),.18); color: var(--moon); font-size: 11px;
}
.fx:hover { background: var(--moon); color: var(--moon-ink); }
.fx[hidden] { display: none; }

.pop {
  position: absolute; top: 42px; left: 0; z-index: 20;
  background: rgba(12, 19, 40, .96); border: 1px solid var(--glass-line); border-radius: 16px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0,0,0,.5); padding: 14px;
}
.pop[hidden] { display: none; }
.pop-head { font-size: 12px; text-transform: uppercase; letter-spacing: .9px; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.hm-clear[hidden] { display: inline; visibility: hidden; }   /* always takes up its space: the popover never changes height */
.pop-note { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; line-height: 1.4; }
.pop-empty { color: var(--ink-3); font-size: 13px; padding: 8px 4px; }

/* all popovers: same width */
/* popovers fit their content, with a shared minimum */
.pop-when, .pop-deadline, .pop-rating, .pop-topic { width: auto; padding: 16px; }
.iwrap .fbtn { padding: 7px 9px; }
.ibtn svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.pop-stats { width: auto; padding: 16px; }
.sgrid { display: grid; grid-template-columns: auto repeat(12, 18px); gap: 3px; align-items: center; }
.s-m { font-size: 9.5px; color: var(--ink-3); text-align: center; }
.s-y { font-size: 11px; color: var(--ink-2); padding-right: 6px; font-variant-numeric: tabular-nums; }
.scell { width: 18px; height: 18px; border-radius: 4px; background: rgba(var(--moon-rgb), .07); }
.scell[data-l="1"] { background: rgba(var(--moon-rgb), .22); }
.scell[data-l="2"] { background: rgba(var(--moon-rgb), .4); }
.scell[data-l="3"] { background: rgba(var(--moon-rgb), .6); }
.scell[data-l="4"] { background: rgba(var(--moon-rgb), .82); }
.pop-stats .pop-note { max-width: 300px; }
.pop-topic { width: 310px; }
.pop-deadline .pop-head { font-size: 12px; margin-bottom: 12px; }
.pop-when .pop-head { font-size: 12px; margin-bottom: 12px; }
.pop-when .incl { margin-top: 12px; padding-top: 12px; gap: 16px; font-size: 13px; }
.pop-when .incl input { width: 15px; height: 15px; }
.lead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--glass-line); }
.lead span { font-size: 12.5px; color: var(--ink-2); margin-right: 2px; }
.lead button {
  font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--glass-line);
  background: rgba(160,190,255,.05); color: var(--ink-2);
}
.lead button i { font-style: normal; color: var(--ink-3); font-size: 11px; margin-left: 2px; }
.lead button:hover { color: var(--ink); border-color: rgba(var(--moon-rgb),.45); }
.lead button.on { background: rgba(var(--moon-rgb),.14); border-color: rgba(var(--moon-rgb),.55); color: var(--ink); }
.range { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.range label { display: inline-flex; align-items: center; gap: 6px; flex: 1; }
.range label select { flex: 1; min-width: 0; }   /* the menus fill the row: no empty space on the right */
.range select {
  color-scheme: dark; background: rgba(0,0,0,.25); border: 1px solid var(--glass-line); border-radius: 7px;
  color: var(--ink); font: inherit; font-size: 14px; padding: 6px 8px; cursor: pointer;
}
.range select:focus { outline: none; border-color: rgba(var(--moon-rgb),.5); }
.m {
  display: flex; align-items: center; justify-content: center;
  height: 26px; width: 100%; padding: 0 3px; border: 0; border-radius: 5px; cursor: pointer; color: var(--ink-2);
  background: rgba(var(--moon-rgb), .07); transition: transform .12s, box-shadow .12s, background .12s;
}
.m b { font-size: 10.5px; font-weight: 600; }
.m.gone { background: rgba(var(--moon-rgb), .025); cursor: default; }
.m:not(:disabled):hover { transform: scale(1.08); }
.m:not(:disabled):active, .rbtn:not(:disabled):active { filter: brightness(1.35); transition-duration: 0s; }   /* pressed: it lights up, without changing size */
.hm-drag .m, .hm-drag .rbtn { transition: none; }                                   /* while dragging: no delay */
.hm-drag .m:not(:disabled):hover, .hm-drag .rbtn:not(:disabled):hover { transform: none; }
.hm-moved .m:not(:disabled):active, .hm-moved .rbtn:not(:disabled):active { filter: none; }
.m:disabled { cursor: default; }
.m.on { position: relative; z-index: 1; background: #fff; box-shadow: 0 0 8px 1px rgba(255,255,255,.32); }   /* selected: solid white with a soft glow */
/* with a selection active the unpicked items dim: white then reads as "selected", not as "many" */
.has-sel .m:not(.on), .has-sel .rbtn:not(.on) { opacity: .5; }
.m.on { color: var(--moon-ink); }
.hm-legend { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-top: 6px; font-size: 10px; color: var(--ink-3); }
.hm-legend span { margin: 0 4px; }
.hm-clear { margin-right: auto; font-size: 11.5px; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; }
.hm-clear:hover { color: var(--ink); }

.pop-search {
  width: 100%; height: 34px; padding: 0 12px; margin-bottom: 10px; border-radius: 8px;
  border: 1px solid var(--glass-line); background: rgba(0,0,0,.25); color: var(--ink); font-size: 13.5px; outline: none;
}
.pop-search:focus { border-color: rgba(var(--moon-rgb),.5); }
.tlist {
  max-height: 260px; overflow: auto; margin: 0 -4px; padding: 0 4px;
  /* same scrollbar as the conference list: without a colour the browser draws its light default */
  scrollbar-width: thin; scrollbar-color: rgba(160,190,255,.2) transparent;
  /* as in the panel: the last row fades, so you can tell the list goes on */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
}
.pop-topic .hm-legend { margin-top: 0; padding-top: 5px; border-top: 1px solid var(--glass-line); }
.tarea + .tarea { border-top: 1px solid var(--glass-line); margin-top: 3px; padding-top: 3px; }
.trow {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 5px; border: 0; border-radius: 6px;
  background: none; cursor: pointer; font-size: 13.5px; color: var(--ink-2); text-align: left;
}
.trow:not(:disabled):hover { background: rgba(160,190,255,.07); color: var(--ink); }
.trow:disabled { cursor: default; opacity: .5; }
.trow.area { color: var(--ink); font-weight: 600; }
.trow.on { color: var(--ink); }
.tsubs .trow { padding-left: 26px; }
.trow span { flex: 1; }
.tsq { flex: none; display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 3px; background: rgba(var(--moon-rgb), .12); }
.trow.on .tsq { background: #fff; box-shadow: 0 0 6px 1px rgba(255,255,255,.32); }
.trow.on .tsq::after {   /* tick inside the checked box */
  content: ""; width: 6px; height: 3px; margin-top: -2px;
  border-left: 1.6px solid var(--moon-ink); border-bottom: 1.6px solid var(--moon-ink); transform: rotate(-45deg);
}
.rgrid { display: grid; grid-template-columns: repeat(4, 30px); gap: 4px; touch-action: none; user-select: none; }
.rbtn {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0;
  border-radius: 6px; border: 0; background: rgba(var(--moon-rgb), .12); color: var(--ink); cursor: pointer; transition: transform .12s;
}
.rbtn.wide { grid-column: 1 / -1; width: auto; }
.rbtn b { font-size: 13px; font-weight: 600; }
.rbtn.wide b { font-weight: 500; }
.rbtn:disabled { cursor: default; color: var(--ink-3); background: rgba(var(--moon-rgb), .05); }
.rbtn:not(:disabled):hover { transform: scale(1.08); }
.rbtn.on { background: #fff; color: var(--moon-ink); box-shadow: 0 0 8px 1px rgba(255,255,255,.32); }


.dl-row + .pop-note { margin-top: 10px; font-size: 11.5px; max-width: 390px; }
.dl-range { margin-top: 10px; }
.dl-range + .pop-note { margin-top: 10px; font-size: 11.5px; max-width: 390px; }
.dl-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; white-space: nowrap; }
.dl-row label { flex: none; }
.dl-row select { flex: none; }
.dl-input.off { opacity: .45; cursor: default; }
.dl-state, .dl-input {
  color-scheme: dark; background: rgba(0,0,0,.25); border: 1px solid var(--glass-line); border-radius: 7px;
  color: var(--ink); font: inherit; font-size: 13px; padding: 4px 6px; cursor: pointer;
}

.card-meta .dl-hot { color: var(--accent); font-weight: 600; }

.core {
  font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; letter-spacing: .2px;
  border: 1px solid rgba(160,190,255,.25); color: var(--ink-2);
}
.core-as, .core-a { color: var(--ink-2); }   /* every rank looks the same */
/* no CORE rank: badge dimmed like the "sample" tag, it must not compete with real ranks */
.core-none { font-weight: 400; letter-spacing: .1px; color: var(--ink-3); border-color: var(--glass-line); }

/* ---------- rotation pause ---------- */
.spin {
  position: fixed; right: calc(var(--panel-w) + 40px); bottom: 148px; /* above the zoom controls, detached */
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 38px; padding: 0;
  border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: color .2s, border-color .2s, background .2s;
}
.spin:hover { color: var(--ink); background: rgba(160,190,255,.1); }
.spin svg { width: 15px; height: 15px; fill: currentColor; }
.spin span { display: none; }
.spin .i-play { display: none; }
.spin.paused { color: var(--accent); border-color: rgba(var(--accent-rgb),.4); }
.spin.paused .i-play { display: block; }
.spin.paused .i-pause { display: none; }

/* ---------- continents ---------- */
.regions {
  position: fixed; left: 22px; bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px;
  max-width: calc(100% - var(--panel-w) - 150px);
}
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13.5px;
  border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--ink); border-color: rgba(160,190,255,.3); }
.chip.on { background: rgba(var(--moon-rgb),.16); color: var(--ink); border-color: rgba(var(--moon-rgb),.55); font-weight: 600; }
.chip .n { opacity: .6; margin-left: 5px; font-variant-numeric: tabular-nums; }

/* ---------- zoom ---------- */
.zoom {
  position: fixed; right: calc(var(--panel-w) + 40px); bottom: 22px;
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--glass-line); background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.zoom button { width: 40px; height: 38px; border: 0; background: transparent; font-size: 19px; color: var(--ink-2); }
.zoom button + button { border-top: 1px solid var(--glass-line); }
.zoom button:hover { background: rgba(160,190,255,.1); color: var(--ink); }
#reset svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; vertical-align: middle; }

.dls { margin-top: 2px; }
.dls summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); font-weight: 600;
  padding: 4px 0;
}
.dls summary::-webkit-details-marker { display: none; }
.dls summary::before { content: "▸"; font-size: 11px; transition: transform .15s; }
.dls[open] summary::before { transform: rotate(90deg); }
.dls summary span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-2); }
.dls summary:hover, .dls summary:hover span { color: var(--ink); }
.dls .dl { margin: 6px 0 4px; }
.details .links { margin-top: 10px; }   /* same rhythm between venue, deadlines and links */

.hint {
  position: fixed; left: calc((100% - var(--panel-w)) / 2); top: 124px; transform: translateX(-50%);
  font-size: 13px; color: var(--ink-3); letter-spacing: .2px; white-space: nowrap;
  transition: opacity 1.2s;
}
.hint.gone { opacity: 0; }

.tooltip {
  position: fixed; pointer-events: none; z-index: 5;
  padding: 7px 11px; border-radius: 10px; font-size: 13px;
  background: rgba(8, 13, 28, .9); border: 1px solid var(--glass-line);
  box-shadow: 0 8px 24px rgba(0,0,0,.4); white-space: nowrap;
  transform: translate(14px, 14px);
}
.tooltip b { font-weight: 600; }
.tooltip span { color: var(--ink-3); margin-left: 6px; }

/* ---------- panel ---------- */
.panel {
  position: fixed; top: 16px; right: 16px; bottom: 16px; width: var(--panel-w);
  display: flex; flex-direction: column;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 20px;
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 20px 10px; gap: 10px; }
.panel-title { display: flex; gap: 12px; align-items: center; min-width: 0; }
.flag { font-size: 30px; line-height: 1; }
.flag:empty { display: none; }
.panel-head h1 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.2px; }
.panel-head p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); }
.icon-btn {
  width: 32px; height: 32px; flex: none; border-radius: 10px;
  border: 1px solid var(--glass-line); background: transparent; color: var(--ink-2);
}
.icon-btn:hover { color: var(--ink); background: rgba(160,190,255,.08); }

.panel-tools { padding: 4px 20px 12px; border-bottom: 1px solid var(--glass-line); }
.tools-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; row-gap: 8px; }
.coverage {
  padding: 9px 20px; border-top: 1px solid var(--glass-line);
  font-size: 12.5px; line-height: 1.4; color: var(--ink-3);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.coverage b { color: var(--ink); font-weight: 600; }
/* the heatmap lives in the panel footer: it opens upwards, right-aligned */
.coverage .pop-stats { top: auto; bottom: calc(100% + 8px); left: auto; right: 0; }
.coverage .iwrap { flex: none; }
.coverage .ibtn { height: 26px; padding: 0 8px; border-radius: 8px; background: transparent; color: var(--ink-3); }
.coverage .ibtn svg { width: 13px; height: 13px; }
/* signature under the coverage line: two authors, one of them anonymous by choice */
.credits {
  margin: 0; padding: 0 20px 10px; font-size: 11.5px; line-height: 1.4; color: var(--ink-3);
}
.credits a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid rgba(var(--moon-rgb),.25); }
.credits #updated { display: block; margin-top: 2px; }
.credits #updated[hidden] { display: none; }
.credits a:hover { color: var(--ink); border-bottom-color: rgba(var(--moon-rgb),.6); }
.incl {
  display: flex; gap: 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--glass-line);
  font-size: 12px; color: var(--ink-3);
}
.incl label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.incl label:hover { color: var(--ink-2); }
/* quiet checkboxes: outline only when empty, filled blue-grey when ticked */
.incl input {
  appearance: none; -webkit-appearance: none; width: 13px; height: 13px; margin: 0; flex: none;
  border: 1px solid rgba(var(--moon-rgb),.35); border-radius: 3px; background: rgba(var(--moon-rgb),.07);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.incl input:hover { border-color: rgba(var(--moon-rgb),.6); }
.incl input:checked { background: rgba(var(--moon-rgb),.75); border-color: transparent; }
.incl input[type="radio"] { border-radius: 50%; }
.incl input[type="radio"]:checked::after { content: ""; width: 5px; height: 5px; margin: 0; border: 0; border-radius: 50%; background: var(--moon-ink); transform: none; }
.incl input:checked::after {
  content: ""; width: 6px; height: 3px; margin-top: -2px;
  border-left: 1.6px solid var(--moon-ink); border-bottom: 1.6px solid var(--moon-ink); transform: rotate(-45deg);
}
.sort { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); }
.sort .seg button { white-space: nowrap; padding: 5px 10px; font-size: 12.5px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(0,0,0,.25); }
.seg button { border: 0; background: transparent; color: var(--ink-3); font-size: 13px; padding: 5px 12px; border-radius: 8px; }
.seg button.on { background: rgba(160,190,255,.16); color: var(--ink); }

.list { flex: 1; overflow: auto; padding: 10px 10px 16px; scrollbar-width: thin; scrollbar-color: rgba(160,190,255,.2) transparent; 
  /* the last rows fade out: it shows where the scrolling part ends */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 36px), transparent);
}
.section-label {
  position: sticky; top: -10px; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3);
  padding: 12px 10px 6px; margin: 0 -10px; padding-left: 20px; padding-right: 20px;
  background: #0f1831; box-shadow: 0 6px 10px -6px rgba(0,0,0,.5);
}
.section-label .cnt { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.section-label[data-group] { cursor: pointer; user-select: none; }
.section-label[data-group]:hover { color: var(--ink-2); }
.section-label .sl-name { display: inline-flex; align-items: center; gap: 6px; }
.section-label .chev {
  width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .15s;
}
.section-label.closed .chev { transform: rotate(-90deg); }
.section-label[data-group]:hover .chev { stroke: var(--ink); }
.section-label.closed { position: static; box-shadow: none; margin-bottom: 2px; }
.section-head { font-size: 13px; font-weight: 650; color: var(--ink); padding: 16px 10px 2px; }
.more {
  display: block; width: calc(100% - 4px); margin: 10px 2px 4px; padding: 11px;
  border-radius: 12px; border: 1px dashed var(--glass-line); background: transparent;
  color: var(--ink-2); font-size: 13.5px;
}
.more span { color: var(--ink-3); }
.more:hover { color: var(--ink); background: rgba(160,190,255,.06); }
.tag {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; padding: 1px 6px; border-radius: 5px;
  color: var(--ink-3); border: 1px solid var(--glass-line);
}

.card {
  display: block; width: 100%; text-align: left;
  border: 1px solid transparent; background: transparent; border-radius: 14px;
  padding: 14px 12px; margin: 2px 0; transition: background .15s, border-color .15s;
}
.card:hover { background: rgba(160,190,255,.07); }
/* thin separator between one conference and the next */
.card { position: relative; }
.card + .card::before { content: ""; position: absolute; left: 12px; right: 12px; top: -2px; height: 1px; background: rgba(160,190,255,.12); pointer-events: none; }
.card.sel { background: rgba(var(--accent-rgb),.08); border-color: rgba(var(--accent-rgb),.35); }
.card-top { display: flex; align-items: center; gap: 8px; }
.card-acr { font-weight: 700; font-size: 15.5px; letter-spacing: .2px; }
.card-year { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.pill { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill.soon { background: rgba(var(--moon-rgb),.12); color: var(--moon); }
.pill.live { background: rgba(110,231,168,.14); color: var(--live); }
.pill.past { background: rgba(125,139,176,.14); color: var(--past); }
.pill.tbd  { background: rgba(160,190,255,.1); color: var(--ink-2); }
.card-place { display: flex; align-items: center; margin: 0 0 7px; font-size: 14.5px; line-height: 1.25; }
.card-place b { font-weight: 650; color: var(--ink); }
.card-place .country { color: var(--ink-2); font-size: 14px; }
.card-place .flag-sm { margin-right: 6px; font-size: 14px; line-height: 1; }
.card-when { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; margin: 0; line-height: 1.25; }
.card-when svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .8; }
.card-name { font-size: 13.5px; font-weight: 400; color: var(--ink-2); margin: 2px 0 6px; line-height: 1.35; }   /* dimmer: white is reserved for the acronym and the city */
.card-meta .dl-passed { color: var(--ink-3); }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink); margin-top: 8px; }
.card-meta span { display: inline-flex; gap: 6px; align-items: center; }
.card-meta .muted { color: var(--ink-3); }
.card.past .card-acr, .card.past .card-meta, .card.past .card-place, .card.past .card-when { opacity: .7; }

.details { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--glass-line); }
.details h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); font-weight: 600; }
.dl { display: grid; grid-template-columns: 76px 1fr; gap: 4px 10px; font-size: 13px; }
.dl .d { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.dl .t.passed, .dl .d.passed { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(107,123,160,.5); }
.dl .t.next { color: var(--accent); }
.details .venue { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }

.details h3 + .links, .links { margin-top: 2px; }
.details .dl + h3, .details .venue + h3 { margin-top: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links a {
  font-size: 12.5px; padding: 5px 10px; border-radius: 999px; text-decoration: none;
  color: var(--ink); border: 1px solid var(--glass-line); background: rgba(160,190,255,.06);
  transition: background .15s, border-color .15s;
}
.links a:hover { background: rgba(var(--moon-rgb),.14); border-color: rgba(var(--moon-rgb),.45); }
/* buttons in the details (calendar) look exactly like the links */
.lnk {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; padding: 5px 10px; border-radius: 999px;
  color: var(--ink); border: 1px solid var(--glass-line); background: rgba(160,190,255,.06);
  transition: background .15s, border-color .15s;
}
.lnk-i { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.lnk:hover { background: rgba(var(--moon-rgb),.14); border-color: rgba(var(--moon-rgb),.45); }

/* ---------- favorites ---------- */
/* the star sits at the bottom right: the top row is already full of badges and
   would wrap constantly, while the bottom one almost always has room */
.card-star {
  margin-left: auto; width: 22px; height: 22px; padding: 0; flex: none; margin-right: -2px;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 8px;
}
.card-star svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linejoin: round; }
.card-star:hover svg { stroke: var(--ink); }
.card-star.on svg { fill: var(--moon); stroke: var(--moon); }
.card-star:focus-visible { outline: 2px solid rgba(var(--moon-rgb),.6); outline-offset: 1px; }

.saved-btn {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  height: 30px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--glass-line); background: transparent; color: var(--ink-3);
  font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.saved-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.saved-btn[hidden] { display: none; }   /* inline-flex scavalca [hidden]: va detto */
.saved-btn:hover { color: var(--ink); border-color: rgba(var(--moon-rgb),.4); }
.saved-btn[disabled] { opacity: .55; cursor: default; }
.saved-btn[disabled]:hover { color: var(--ink-3); border-color: var(--glass-line); }
#selFavBtn svg { fill: var(--moon); stroke: var(--moon); }
.saved-btn.has { color: var(--ink-2); }
#savedN:not(:empty) { font-weight: 600; color: var(--ink); }
#savedN:not(:empty)::before { content: ""; }
.saved-btn.has svg { fill: var(--moon); stroke: var(--moon); }
.saved-btn.open { background: rgba(var(--moon-rgb),.14); border-color: rgba(var(--moon-rgb),.5); color: var(--ink); }
.panel.saved-view .tools-row:first-child { display: none; }
/* in the favorites the view IS the list: one share button only, the inner one */
.panel.saved-view #shareBtn { display: none; }

.sv-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 12px 4px; }
.sv-link { padding: 4px 12px 10px; display: flex; align-items: center; gap: 8px; }
.sv-link[hidden] { display: none; }   /* display:flex batte [hidden]: va detto esplicitamente */
.sv-link input {
  flex: 1; min-width: 0; font: inherit; font-size: 12px; color: var(--ink-2);
  background: rgba(160,190,255,.06); border: 1px solid var(--glass-line);
  border-radius: 8px; padding: 6px 8px;
}
.sv-copied { font-size: 12px; color: var(--moon); flex: none; }
.sv-note { margin: 0; padding: 2px 12px 8px; font-size: 12px; line-height: 1.45; color: var(--ink-3); }
/* warning: the prototype is open as a file, so the link never leaves this computer */
.sv-warn {
  flex: none; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--ink-3); border: 1px solid var(--glass-line); border-radius: 5px; padding: 2px 6px; cursor: help;
}
#shareBox { padding: 0 20px 10px; }
/* the actions get a row of their own, left-aligned and separated from the
   sorting by a line: they are two different things */
.tools-actions { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--glass-line); }
.panel.saved-view .tools-actions { margin-top: 0; padding-top: 0; border-top: 0; }
#shareBtn svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
/* No action stands out over the others: the pills are all the same and
   their weight comes from the order they sit in. */
.lnk[disabled] { opacity: .5; cursor: default; }
.lnk[disabled]:hover { background: rgba(160,190,255,.06); border-color: var(--glass-line); }
/* Destructive action: not a button but a text command, like the Clear inside
   the popovers — it only lights up on hover. The same goes for the confirm
   state: it changes the words and the colour, never the shape. */
.lnk.quiet, .lnk.quiet:hover, .lnk.quiet.armed, .lnk.quiet.armed:hover {
  border-color: transparent; background: transparent; padding: 5px 2px;
}
.lnk.quiet { color: var(--ink-3); }
.lnk.quiet:hover { color: var(--ink); }
/* a muted red is the only spot of colour in the site: it says "careful" */
.lnk.quiet.armed { color: #eda6a2; font-weight: 600; }
.lnk.quiet.armed:hover { color: #f3bcb9; }
.sv-actions { padding: 12px 12px 6px; }
.empty .muted { color: var(--ink-3); font-size: 12.5px; }
.card { cursor: pointer; }
.card:focus-visible { outline: 2px solid rgba(var(--moon-rgb),.6); outline-offset: 1px; }

.empty { padding: 26px 14px 8px; text-align: center; color: var(--ink-2); }
.empty .big { font-size: 34px; margin-bottom: 6px; }
.empty p { margin: 4px 0; font-size: 14px; }
.empty .small { color: var(--ink-3); font-size: 13px; }

/* ---------- phone ---------- */
.sheet-grip { display: none; }
@media (max-width: 820px) {
  :root { --panel-w: 0px; }
  .topbar { left: 12px; right: 12px; top: 12px; gap: 12px; }
  .brand-name { display: none; }
  .search { flex: 1; }
  .search kbd { display: none; }
  .regions { left: 12px; right: 12px; bottom: calc(42vh + 12px); max-width: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip { flex: none; }
  .zoom { display: none; }
  .coverage { padding-top: 6px; padding-bottom: 6px; }
  .credits { padding-bottom: 8px; font-size: 11px; }
  .spin { top: 64px; bottom: auto; right: 12px; width: 32px; height: 32px; border-radius: 50%; }
  .filters { top: 62px; left: 12px; right: 52px; overflow-x: auto; scrollbar-width: none; }
  .fwrap { position: static; }
  .pop { position: fixed; top: 104px; left: 12px; right: 12px; width: auto; max-height: calc(58vh - 110px); overflow: auto; }
  .hint { display: none; }
  .hint { left: calc(50% - 26px); top: 66px; font-size: 11.5px; white-space: normal; width: calc(100% - 90px); text-align: center; }
  .panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 42vh; border-radius: 20px 20px 0 0; border-bottom: 0; }
  .panel-head { padding-top: 10px; }
  .panel { transition: height .28s ease; z-index: 30; }
  .panel.full { height: 100%; height: 100dvh; border-radius: 0; padding-top: env(safe-area-inset-top); background: rgba(10, 17, 36, 0.94); }
  .list { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
  .sheet-grip {
    display: flex; justify-content: center; align-items: center; flex: none;
    width: 100%; height: 22px; padding: 0; border: 0; background: transparent;
  }
  .sheet-grip span { width: 40px; height: 5px; border-radius: 3px; background: rgba(var(--moon-rgb), .35); }
  .sheet-grip[hidden] { display: none; }
  .sheet-grip + .panel-head { padding-top: 2px; }
}
