:root {
  --fondo: #000000;
  --pannello: #0d0e10;
  --riga-su: rgba(255, 255, 255, 0.035);
  --accento: #8fa8ff;
  --tinta: rgba(143, 168, 255, 0.085);
  --testo: #f3f4f6;
  --testo-2: rgba(243, 244, 246, 0.56);
  --testo-3: rgba(243, 244, 246, 0.32);
  --bordo: rgba(255, 255, 255, 0.08);
  --riga: clamp(40px, 10.6vh, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--fondo);
  color: var(--testo);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: hidden;
  background: var(--fondo);
  user-select: none;
  -webkit-user-select: none;
}

.wrap {
  position: relative;
  width: min(388px, 94vw);
  display: grid;
  gap: clamp(8px, 2vh, 14px);
}

/* the app bar above the panel: the brand and the bell with its badge */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -0.01em;
  color: var(--testo-2);
}

.brand__mark { width: 18px; height: 18px; fill: none; stroke: var(--accento); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.bell {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--bordo);
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 0.2s ease;
}

.bell__icon { display: grid; place-items: center; transform-origin: 50% 12%; }
.bell svg { width: 19px; height: 19px; fill: none; stroke: var(--testo); stroke-width: 1.55; stroke-linejoin: round; stroke-linecap: round; overflow: visible; }

.badge {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--accento);
  color: #05070d;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 0 0 2.5px var(--fondo);
}

.badge__roll { position: relative; display: block; height: 19px; overflow: hidden; }
.badge__num { display: block; height: 19px; }
.badge__num + .badge__num { position: absolute; left: 0; right: 0; top: 0; }

/* the panel */
.panel {
  position: relative;
  border-radius: 18px;
  background: var(--pannello);
  border: 1px solid var(--bordo);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: clamp(10px, 2.4vh, 14px) 14px clamp(8px, 1.8vh, 10px) 16px;
  border-bottom: 1px solid var(--bordo);
}

.panel__title { font-size: 15px; font-weight: 640; letter-spacing: -0.012em; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px 0 8px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 560;
  color: var(--accento);
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.3s ease;
}

.mark__icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mark__tick { stroke-dasharray: 1; stroke-dashoffset: 0; }
.mark[disabled] { color: var(--testo-3); cursor: default; }
.mark:focus-visible, .bell:focus-visible, .row__hit:focus-visible { outline: 2px solid var(--accento); outline-offset: 2px; }

.panel__body { position: relative; overflow: hidden; }

.list { list-style: none; padding: 6px; display: grid; gap: 2px; }
.list[hidden] { display: none; }

.row { position: relative; }

.row__hit {
  --w: 600;
  position: relative;
  width: 100%;
  height: var(--riga);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  border-radius: 11px;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}

.row__tint {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--tinta);
  z-index: -1;
}

.row__sweep {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(143, 168, 255, 0.16) 45%, rgba(255, 255, 255, 0.07) 52%, transparent);
  transform: translateX(-110%);
  opacity: 0;
}

.row__avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #0b0c0f;
}

.row__avatar svg { width: 16px; height: 16px; fill: none; stroke: var(--testo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.row__avatar--icon { background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 1px var(--bordo) inset; }

.row__text { min-width: 0; display: grid; gap: 1px; }

.row__title {
  font-size: 13px;
  font-variation-settings: "wght" var(--w);
  color: var(--testo);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row__meta {
  font-size: 11.5px;
  color: var(--testo-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row__time { font-size: 11px; color: var(--testo-3); font-variant-numeric: tabular-nums; }

/* the empty state */
.empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  height: calc(var(--riga) * 4 + 18px);
  padding: 8px 16px;
  text-align: center;
}

.empty[hidden] { display: none; }

.empty__art { width: clamp(84px, 24vh, 120px); height: auto; margin-bottom: clamp(2px, 1vh, 8px); overflow: visible; }
.empty__line { fill: none; stroke: var(--testo-3); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.empty__line--accent { stroke: var(--accento); stroke-width: 1.8; filter: drop-shadow(0 0 6px rgba(143, 168, 255, 0.45)); }
.empty__title { font-size: 14.5px; font-weight: 620; letter-spacing: -0.01em; }
.empty__sub { font-size: 12px; color: var(--testo-3); }

.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  fill: #ffffff;
  stroke: #000000;
  stroke-width: 1.2;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.row__hit.is-ghost { background: var(--riga-su); }
.mark.is-ghost { background: rgba(143, 168, 255, 0.1); }

@media (hover: hover) {
  .bell:hover { background: rgba(255, 255, 255, 0.07); }
  .mark:not([disabled]):hover { background: rgba(143, 168, 255, 0.1); }
  .row__hit:hover { background: var(--riga-su); }
}

