:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #17181c;
  --soft: rgba(23, 24, 28, 0.56);
  --line: rgba(23, 24, 28, 0.09);
  --field: #f3f3f5;
  --accent: #3d5afe;
  --mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: 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 8px;
}

.ev { position: relative; width: min(326px, 100%); padding: 14px 10px 10px; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(23, 24, 28, 0.05), 0 26px 44px -30px rgba(23, 24, 28, 0.38); }

.ev__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 12px 6px; }
.ev__title { min-width: 0; }
.ev__title h2 { font-size: 14.500px; line-height: 19px; font-weight: 720; font-stretch: 102%; letter-spacing: -0.01em; white-space: nowrap; }
.ev__title p { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 540; color: var(--soft); white-space: nowrap; }
.ev__title i { font-style: normal; font-weight: 680; color: var(--ink); }
.ev__count { display: inline-block; height: 16px; overflow: hidden; font-weight: 700; color: var(--ink); }
.ev__count b { display: block; font-weight: inherit; }

.ev__paste { flex: none; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 9px; border: 0; border-radius: 17px; background: var(--ink); color: #ffffff; font: inherit; font-size: 12.500px; font-weight: 680; white-space: nowrap; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 14px -8px rgba(23, 24, 28, 0.6); }
.ev__paste:focus-visible, .ev__btn:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
.ev__pasteicon { display: grid; place-items: center; width: 16px; height: 16px; }
.ev__pasteicon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.500; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ev__undo { opacity: 0; }
.ev__pastelabel { display: inline-block; }

.ev__list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); }
.ev__row { position: relative; overflow: hidden; }
.ev__in { position: relative; display: grid; grid-template-columns: minmax(0, 0.900fr) minmax(0, 1fr) 28px 28px; align-items: center; gap: 4px; height: 40px; padding: 0 4px 0 6px; border-top: 1px solid var(--line); }
.ev__flash { position: absolute; left: 2px; right: 2px; top: 5px; bottom: 4px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 13%, transparent); opacity: 0; pointer-events: none; }
.ev__key { position: relative; min-width: 0; font-family: var(--mono); font-size: 11.500px; font-weight: 640; letter-spacing: -0.01em; white-space: nowrap; }
.ev__key span { display: inline-block; }
.ev__eq { position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 11.500px; line-height: 40px; color: var(--soft); opacity: 0; pointer-events: none; }
.ev__val { position: relative; min-width: 0; height: 28px; border-radius: 9px; }
.ev__field { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 9px; background: var(--field); }
.ev__ring { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 9px; box-shadow: inset 0 0 0 1.500px var(--accent), 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); opacity: 0; pointer-events: none; }
.ev__chars.is-raw { overflow: visible; -webkit-mask-image: none; mask-image: none; }
.ev__chars { position: relative; display: block; height: 28px; padding: 0 8px; font-family: var(--mono); font-size: 11.500px; line-height: 28px; font-weight: 520; white-space: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 97%); mask-image: linear-gradient(90deg, #000 78%, transparent 97%); }
.ev__chars span { display: inline-block; white-space: pre; }
.ev__left { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 1.500px; border-radius: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

.ev__btn { position: relative; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--soft); cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.ev__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.500; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ev__btn[aria-pressed="true"] { color: var(--accent); }
.ev__slash, .ev__gap { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ev__tick { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ev__gap { stroke: var(--card); stroke-width: 4; }
.ev__tick { stroke: var(--accent); stroke-width: 1.900; visibility: hidden; }
@media (hover: hover) {
  .ev__btn:hover { background: var(--field); color: var(--ink); }
  .ev__btn[aria-pressed="true"]:hover { color: var(--accent); }
}

.ev__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: #17181c; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(23, 24, 28, 0.3)); z-index: 5; }
