:root {
  color-scheme: dark;
  --ink: #f5f2f3;
  --muted: #a29ba2;
  --red: #ff818a;
  --line: #ffffff17;
  --mono: ui-monospace, Consolas, monospace;
  background: #101012;
  color: var(--ink);
  font-family: system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; isolation: isolate; position: relative; }
body::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 46% 49%, #3b1922 0%, #1c1319 31%, transparent 68%); }
.shell { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.header { height: 72px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; gap: 9px; align-items: center; font-size: 19px; font-weight: 650; letter-spacing: -.035em; }
.top-link { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: #ffffff04; border-radius: 8px; padding: 8px 12px; color: #e5dce3; font-size: 12px; }
.top-link:hover { background: #ffffff0e; }
.top-link span { color: var(--red); }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 51px 0 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #c9a7af; font: 500 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .16em; }
.hero .eyebrow { margin: 0 0 15px; }
.dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px #ff617777; }
h1 { margin: 0; font-size: clamp(57px, 6.5vw, 94px); line-height: .96; font-weight: 660; letter-spacing: -.075em; }
h1 span { color: var(--red); }
.intro { max-width: 263px; margin: 0 54px 4px 0; color: #c1b7bf; font-size: 16px; line-height: 1.65; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 355px); align-items: stretch; gap: 18px; }
.deck, .catalog { border-radius: 17px; border: 1px solid #ffffff22; box-shadow: 0 20px 60px #0005; min-width: 0; }
.deck { background: linear-gradient(145deg,#251b20,#181619 65%); }
.deck-top { min-height: 55px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.platform { display: flex; gap: 2px; background: #0e0c10; border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.platform button, .filters button { background: transparent; border: 0; color: var(--muted); padding: 6px 9px; border-radius: 5px; font-size: 11px; white-space: nowrap; }
.platform button[aria-pressed=true], .filters button[aria-pressed=true] { background: #38303a; color: #fff3f5; }
.deck-body { padding: 19px 18px 15px; }
.active-command { min-height: 90px; margin: 0 1px 14px; }
.active-command h2 { margin: 5px 0 4px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 620; letter-spacing: -.045em; }
.active-command p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0; }
.keyboard { background: linear-gradient(165deg,#2b252b,#161418); padding: clamp(7px,1.1vw,13px); border-radius: 12px; border: 1px solid #ffffff23; box-shadow: inset 0 1px #ffffff12, 0 4px 0 #0c0a0d, 0 11px 20px #0006; display: grid; gap: clamp(3px,.5vw,6px); }
.key-row { display: flex; gap: clamp(3px,.5vw,6px); min-width: 0; }
.keycap { min-width: 0; flex: var(--units) 1 0; height: clamp(29px,4.1vw,49px); border: 1px solid #ffffff1e; border-bottom-color: #0f0c11; border-radius: 6px; background: linear-gradient(#363139,#27242b); box-shadow: inset 0 1px #ffffff0d, 0 2px 0 #0f0d10; display: grid; place-items: center; font: 500 clamp(8px, 1vw, 13px)/1 var(--mono); color: #c9c2ca; transition: color .14s, background .14s, box-shadow .14s, transform .14s; }
.key-row:first-child .keycap { height: clamp(22px, 2.8vw, 33px); }
.keycap.active { color: #260f15; border-color: #ffb0b5; font-weight: 750; background: linear-gradient(#ffa2ab,#e16c7b); box-shadow: inset 0 1px #ffcad0, 0 2px 0 #8e3c4b, 0 0 19px #ff6f7845; transform: translateY(-1px); }
.deck-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; min-height: 35px; }
.chord { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
kbd { border: 1px solid #ffffff23; background: #ffffff0a; border-radius: 5px; padding: 4px 6px; font: 11px/1.1 var(--mono); color: #f1dce2; white-space: nowrap; }
.deck-bottom kbd { background: #382831; border-color: #a4546266; color: #ffd2d7; padding: 6px 8px; }
.join { font: 11px var(--mono); color: #887580; }
.copy { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #ffffff06; color: #e8d7df; border-radius: 7px; padding: 7px 9px; font-size: 11px; white-space: nowrap; }
.copy:hover, .command:hover { background: #ffffff0e; }
.copy:disabled { opacity: .45; cursor: default; }
.catalog { background: #19171c; display: flex; flex-direction: column; padding: 16px; }
.catalog-head, .catalog-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.catalog-head h2 { font-size: 17px; letter-spacing: -.02em; font-weight: 650; margin: 0; }
.count { color: #a49ba4; font: 11px var(--mono); }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid #ffffff23; background: #100f13; border-radius: 8px; padding: 8px 9px; margin-top: 12px; color: #a498a4; }
.search-box:focus-within { border-color: #a96272; }
.search-box input { min-width: 0; width: 100%; color: var(--ink); background: none; border: 0; outline: 0; font-size: 13px; }
.search-box input::placeholder { color: #aca1aa; }
.search-box input:focus-visible { outline: 0; }
.search-box kbd { padding: 3px 5px; }
.filters { display: flex; flex-wrap: wrap; gap: 3px; padding-block: 9px; }
.filters button { padding: 5px 7px; }
.command-list { flex: 1 1 0; min-height: 255px; max-height: 348px; overflow: auto; scrollbar-color: #55414b transparent; scrollbar-width: thin; padding-right: 3px; }
.command { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; text-align: left; padding: 8px; margin-bottom: 3px; border: 1px solid transparent; border-radius: 7px; background: transparent; }
.command[aria-pressed=true] { border-color: #ff83853d; background: #34232c; }
.command span:first-child { min-width: 0; }
.command strong, .command small { display: block; }
.command strong { font-size: 12px; font-weight: 550; }
.command small { margin-top: 2px; color: #a99da8; font-size: 10px; }
.command kbd { font-size: 9px; padding: 4px 5px; }
.empty { padding: 14px 8px; color: var(--muted); font-size: 13px; }
.catalog-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: #aaa1ab; font-size: 10px; }
.catalog-foot kbd { padding: 2px 4px; font-size: 10px; }
.catalog-foot a { color: #e0b0ba; }
.catalog-foot a:hover { text-decoration: underline; }
.footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-block: 17px; border-top: 1px solid var(--line); color: #b2a6af; font-size: 11px; }
.footer span:first-child { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width: 880px) {
  .shell { width: calc(100% - 40px); }
  .hero { padding-top: 39px; }
  .intro { margin-right: 0; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .command-list { flex-basis: auto; min-height: 0; max-height: 310px; }
  .keycap { height: clamp(26px, 5.5vw, 49px); }
}
@media(max-width: 480px) {
  .shell { width: calc(100% - 28px); }
  .header { height: 60px; }
  .hero { display: block; padding: 31px 0 22px; }
  h1 { font-size: clamp(50px, 13vw, 61px); }
  .intro { margin: 13px 0 0; max-width: 310px; font-size: 14px; }
  .deck-top, .deck-body { padding-inline: 10px; }
  .deck-top .eyebrow { font-size: 8px; letter-spacing: .08em; }
  .platform button { padding-inline: 6px; }
  .active-command { min-height: 75px; }
  .keycap { border-radius: 4px; font-size: 8px; }
  .key-row, .keyboard { gap: 3px; }
  .key-row:first-child .keycap { height: 19px; }
  .keycap { height: 24px; }
  .catalog { padding: 12px; }
}
@media(prefers-reduced-motion: reduce) { .keycap { transition: none; } }
