:root {
  --bg: #f0f1f5;
  --card: #ffffff;
  --ink: #17181d;
  --soft: rgba(23, 24, 29, 0.56);
  --faint: rgba(23, 24, 29, 0.34);
  --line: rgba(23, 24, 29, 0.08);
  --accent: #3565f6;
  --warn: #e07b0c;
  --row: 54px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 14px;
}

.as { position: relative; width: min(312px, 100%); padding: 14px 14px 8px; border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 1px 0 #ffffff inset, 0 30px 50px -34px rgba(23, 24, 29, 0.5), 0 8px 16px -12px rgba(23, 24, 29, 0.2); }
.as__head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.as__head h1 { font-size: 15px; line-height: 20px; font-weight: 720; letter-spacing: -0.01em; }
.as__count { height: 17px; overflow: hidden; font-size: 12.500px; line-height: 17px; font-weight: 580; color: var(--soft); }
.as__count span { display: block; }

/* the list keeps its height, so the card does not jump when a device leaves */
.as__list { list-style: none; height: calc(var(--row) * 3); margin-top: 6px; }
.as__row { display: flex; align-items: center; gap: 11px; height: var(--row); padding: 0 6px; border-radius: 14px; overflow: hidden; transition: background-color 0.25s ease; }
.as__row.is-new { background: color-mix(in srgb, var(--warn) 8%, transparent); }
.as__icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #f1f2f6; box-shadow: inset 0 0 0 1px var(--line); }
.as__row.is-new .as__icon { background: color-mix(in srgb, var(--warn) 14%, #ffffff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 26%, transparent); }
.as__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.500; stroke-linecap: round; stroke-linejoin: round; }
.as__icon .scr { fill: color-mix(in srgb, var(--accent) 22%, #ffffff); transition: fill 0.35s ease; }
.as__row.is-new .scr { fill: color-mix(in srgb, var(--warn) 30%, #ffffff); }
.as__row.is-off .scr { fill: #2a2c34; }
.as__what { flex: 1 1 auto; min-width: 0; display: grid; }
.as__what b { font-size: 13.500px; line-height: 18px; font-weight: 680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as__what > span { height: 16px; overflow: hidden; font-size: 12px; line-height: 16px; font-weight: 540; color: var(--soft); white-space: nowrap; }
.as__what > span span { display: block; }
.as__row.is-new .as__what > span { color: var(--warn); font-weight: 620; }
.as__here { flex: none; font-style: normal; font-size: 11.500px; font-weight: 640; color: var(--accent); white-space: nowrap; padding-right: 4px; }
.as__out { flex: none; height: 30px; padding: 0 11px; border: 0; border-radius: 10px; background: #f1f2f6; color: var(--ink); font: inherit; font-size: 12px; font-weight: 660; cursor: pointer; outline: none; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.2s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.as__row.is-new .as__out { background: var(--ink); color: #ffffff; box-shadow: none; }
.as__out:focus-visible, .as__all:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
@media (hover: hover) { .as__out:hover { background: #e6e8ee; } .as__row.is-new .as__out:hover { background: #2c2e37; } }

.as__all { display: block; width: 100%; height: 38px; margin-top: 4px; border: 0; border-radius: 12px; background: transparent; color: var(--soft); font: inherit; font-size: 12.500px; font-weight: 640; cursor: pointer; outline: none; transition: color 0.2s ease, background-color 0.2s ease; -webkit-tap-highlight-color: transparent; }
.as__all:disabled { cursor: default; }
.as__alltext { display: block; height: 18px; line-height: 18px; overflow: hidden; }
.as__alltext span { display: block; }
@media (hover: hover) { .as__all:not(:disabled):hover { color: var(--ink); background: rgba(23, 24, 29, 0.05); } }

.as__say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #17181d; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(23, 24, 29, 0.3)); z-index: 5; }
