.hotkey-builder-page {
  min-width: 0;
}

.hotkey-builder,
.hotkey-conflict-modal,
.hotkey-help-modal {
  --hotkey-field: rgba(2, 7, 15, 0.74);
  --hotkey-field-hover: rgba(24, 42, 67, 0.9);
  --hotkey-divider: rgba(213, 177, 101, 0.24);
  --hotkey-copy: #f6ead0;
  --hotkey-muted: rgba(246, 234, 208, 0.82);
  --hotkey-soft: rgba(246, 234, 208, 0.68);
  color: var(--hotkey-copy);
}

.hotkey-builder {
  width: min(var(--site-content-width), calc(100% - (var(--site-page-gutter) * 2)));
  margin: clamp(1.25rem, 3vw, 2.5rem) auto clamp(3rem, 7vw, 5.5rem);
}

.hotkey-builder *,
.hotkey-conflict-modal *,
.hotkey-help-modal * {
  box-sizing: border-box;
}

.hotkey-builder button,
.hotkey-builder input,
.hotkey-builder select,
.hotkey-conflict-modal button {
  font: inherit;
}

.hotkey-help-modal button {
  font: inherit;
}

.hotkey-builder button,
.hotkey-conflict-modal button,
.hotkey-builder summary,
.hotkey-help-modal button {
  cursor: pointer;
}

.hotkey-builder button:disabled,
.hotkey-conflict-modal button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.hotkey-builder button:focus-visible,
.hotkey-builder input:focus-visible,
.hotkey-builder select:focus-visible,
.hotkey-builder summary:focus-visible,
.hotkey-builder [tabindex]:focus-visible,
.hotkey-conflict-modal button:focus-visible,
.hotkey-help-modal button:focus-visible,
.hotkey-help-modal [tabindex]:focus-visible {
  outline: 2px solid var(--site-gold-strong);
  outline-offset: 3px;
}

.hotkey-builder [hidden],
.hotkey-conflict-modal [hidden],
.hotkey-help-modal [hidden] {
  display: none !important;
}

.hotkey-hero {
  margin-bottom: clamp(1.15rem, 2vw, 1.6rem);
}

.hotkey-hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.2rem, 3.2vw, 2.9rem);
}

.hotkey-hero-body h1 {
  max-width: 900px;
  margin: 0;
  color: var(--site-gold-strong);
  font-family: var(--site-font-title);
  font-size: clamp(2.35rem, 5.7vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.94;
  text-transform: uppercase;
}

.hotkey-hero-body .ps-phero-lede {
  max-width: 790px;
  margin: 1.1rem 0 0;
  color: var(--hotkey-muted);
  font-size: clamp(1.02rem, 1.55vw, 1.3rem);
  line-height: 1.55;
}

.hotkey-privacy-note {
  display: grid;
  gap: 0.55rem;
  padding: 1.2rem 0 1.2rem 1.4rem;
  border-left: 1px solid var(--site-border-strong);
}

.hotkey-privacy-note .site-kicker,
.hotkey-panel-heading .site-kicker,
.hotkey-subheading .site-kicker,
.hotkey-export-top .site-kicker {
  margin: 0 0 0.25rem;
}

.hotkey-privacy-note strong {
  color: var(--site-gold-strong);
  font-family: var(--site-font-title);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.15;
  text-transform: uppercase;
}

.hotkey-privacy-note span {
  color: var(--hotkey-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.hotkey-help-row {
  display: flex;
  justify-content: flex-end;
  margin: calc(clamp(1.15rem, 2vw, 1.6rem) * -0.55) 0 0.85rem;
}

.hotkey-help-trigger {
  display: inline-flex;
  min-height: 2.55rem;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--site-border-strong);
  border-radius: var(--site-radius-pill);
  color: var(--site-gold-strong);
  background: rgba(10, 19, 33, 0.9);
  font-weight: 850;
  box-shadow: var(--site-shadow-soft);
}

.hotkey-help-trigger:hover,
.hotkey-help-trigger:focus-visible {
  border-color: var(--site-gold-strong);
  background: var(--hotkey-field-hover);
}

.hotkey-info-icon {
  display: grid;
  width: 1.3rem;
  height: 1.3rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1;
}

.hotkey-status:not(:empty) {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--site-gold);
  background: rgba(20, 34, 58, 0.92);
  box-shadow: var(--site-shadow-soft);
  color: var(--hotkey-copy);
  font-weight: 700;
}

.hotkey-flow {
  display: grid;
  gap: clamp(1rem, 2vw, 1.45rem);
}

.hotkey-panel {
  min-width: 0;
}

.hotkey-panel-in {
  z-index: 3;
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

.hotkey-panel-heading,
.hotkey-subheading {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.hotkey-panel-heading {
  margin-bottom: 1.35rem;
}

.hotkey-panel-heading h2,
.hotkey-export-top h2,
.hotkey-conflict-modal h2 {
  margin: 0;
  color: var(--site-gold-strong);
  font-family: var(--site-font-title);
  font-size: clamp(1.32rem, 2vw, 1.85rem);
  letter-spacing: 0.035em;
  line-height: 1.15;
  text-transform: uppercase;
}

.hotkey-count {
  margin-left: auto;
  padding: 0.22rem 0.62rem;
  border: 1px solid var(--site-border-strong);
  border-radius: var(--site-radius-pill);
  color: var(--site-gold-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.hotkey-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hotkey-category {
  display: flex;
  min-width: 0;
  min-height: 92px;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--site-radius-sm);
  color: var(--hotkey-copy);
  background: rgba(2, 7, 15, 0.32);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.hotkey-category:hover,
.hotkey-category:focus-visible,
.hotkey-category.is-selected {
  border-color: var(--site-border-strong);
  background: var(--hotkey-field-hover);
}

.hotkey-category:hover {
  transform: translateY(-2px);
}

.hotkey-category.is-selected {
  box-shadow: inset 3px 0 var(--site-gold);
}

.hotkey-category img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.48));
}

.hotkey-category span,
.hotkey-category strong,
.hotkey-category small {
  display: block;
  min-width: 0;
}

.hotkey-category strong {
  color: var(--site-gold-strong);
  font-size: 1rem;
  line-height: 1.25;
}

.hotkey-category small {
  margin-top: 0.28rem;
  color: var(--hotkey-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hotkey-config-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(1.4rem, 3vw, 2.5rem);
  align-items: start;
}

.hotkey-target-column,
.hotkey-action-column {
  min-width: 0;
}

.hotkey-target-column h3,
.hotkey-subheading h3,
.hotkey-checks h3 {
  margin: 0;
  color: var(--site-gold-strong);
  font-family: var(--site-font-title);
  font-size: 1.14rem;
  letter-spacing: 0.025em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hotkey-helper,
.hotkey-section-intro,
.hotkey-fine {
  color: var(--hotkey-muted);
  line-height: 1.55;
}

.hotkey-helper {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.92rem;
}

.hotkey-section-intro {
  max-width: 780px;
  margin: -0.35rem 0 1.15rem;
  font-size: 0.98rem;
}

.hotkey-fine {
  font-size: 0.85rem;
}

.hotkey-builder code,
.hotkey-conflict-modal code {
  color: var(--site-gold-strong);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.hotkey-builder input[type="search"],
.hotkey-builder select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-sm);
  color: var(--hotkey-copy);
  background: var(--hotkey-field);
}

.hotkey-builder input[type="search"]::placeholder {
  color: var(--hotkey-soft);
  opacity: 1;
}

.hotkey-builder input[type="checkbox"] {
  width: 1.08rem;
  height: 1.08rem;
  margin: 0;
  accent-color: var(--site-gold);
}

.hotkey-field-label {
  display: block;
  margin: 1rem 0 0.42rem;
  color: var(--hotkey-muted);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.035em;
}

.hotkey-check {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.hotkey-subtle {
  margin: 0.8rem 0;
  color: var(--hotkey-muted);
  font-size: 0.9rem;
}

.hotkey-target-kind-wrap {
  display: grid;
  grid-template-columns: auto minmax(180px, 0.45fr);
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.7rem;
}

.hotkey-target-kind-wrap .hotkey-field-label {
  margin: 0;
}

.hotkey-list-meta {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0 0.45rem;
  color: var(--hotkey-soft);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hotkey-target-list {
  max-height: 260px;
  overflow-y: auto;
  scrollbar-color: #9a7840 transparent;
  scrollbar-width: thin;
}

.hotkey-target-row {
  display: flex;
  width: 100%;
  gap: 0.75rem;
  align-items: center;
  margin: 0.18rem 0;
  padding: 0.64rem;
  border: 1px solid transparent;
  border-radius: var(--site-radius-sm);
  color: var(--hotkey-copy);
  background: transparent;
  text-align: left;
}

.hotkey-target-row:hover,
.hotkey-target-row:focus-visible,
.hotkey-target-row.selected {
  border-color: var(--site-border-strong);
  background: var(--hotkey-field-hover);
}

.hotkey-target-icon {
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 2.8rem;
  border: 1px solid var(--site-border);
  border-radius: 50%;
  background: rgba(20, 39, 62, 0.9);
  object-fit: cover;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.42));
}

.hotkey-target-name,
.hotkey-target-description {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hotkey-target-name {
  color: var(--hotkey-copy);
  font-weight: 850;
  line-height: 1.25;
}

.hotkey-target-description {
  margin-top: 0.16rem;
  color: var(--hotkey-soft);
  font-size: 0.8rem;
  line-height: 1.4;
}

.hotkey-selection-note {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 0;
}

.hotkey-selection-note img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
}

.hotkey-selection-note strong,
.hotkey-selection-note span {
  display: block;
}

.hotkey-selection-note strong {
  color: var(--site-gold-strong);
  font-size: 1.08rem;
}

.hotkey-selection-note span {
  margin-top: 0.25rem;
  color: var(--hotkey-muted);
  line-height: 1.45;
}

.hotkey-chosen-target {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--hotkey-divider);
}

.hotkey-chosen-target .hotkey-target-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-basis: 2.75rem;
}

.hotkey-chosen-target .hotkey-target-name {
  color: var(--site-gold-strong);
  font-family: var(--site-font-title);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.hotkey-key-section,
.hotkey-follow-section {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--hotkey-divider);
}

.hotkey-keyboard-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 0.85rem;
}

.hotkey-keyboard-heading .hotkey-helper {
  margin: 0;
}

.hotkey-key-controls {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.hotkey-key-controls select {
  min-width: 5rem;
  flex: 1;
}

.hotkey-mod-toggle {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 0.62rem;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-sm);
  color: var(--hotkey-copy);
  background: rgba(2, 7, 15, 0.38);
  font-weight: 750;
}

.hotkey-compound-box {
  display: grid;
  gap: 2rem;
  margin-top: 1.85rem;
}

.hotkey-follow-up-block {
  position: relative;
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-sm);
  background: rgba(2, 7, 15, 0.32);
  box-shadow: inset 3px 0 rgba(213, 177, 101, 0.34);
}

.hotkey-chain-connector {
  display: grid;
  position: absolute;
  top: -1.72rem;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  color: var(--site-gold);
  font-size: 1.1rem;
  transform: translateX(-50%);
}

.hotkey-follow-up-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.hotkey-follow-up-head .site-kicker {
  margin: 0 0 0.2rem;
}

.hotkey-follow-up-head h4 {
  margin: 0;
  color: var(--site-gold-strong);
  font-family: var(--site-font-title);
  font-size: 1.08rem;
  letter-spacing: 0.025em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hotkey-follow-up-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.8fr);
  gap: 0 1rem;
  align-items: end;
  margin-top: 0.8rem;
}

.hotkey-follow-up-controls .hotkey-field-label {
  grid-column: 1;
  margin-top: 0;
}

.hotkey-follow-up-controls select {
  grid-column: 1;
}

.hotkey-follow-up-requirement {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  padding: 0.65rem 0 0.65rem 1rem;
  border-left: 1px solid var(--hotkey-divider);
}

.hotkey-follow-up-requirement strong,
.hotkey-follow-up-requirement span {
  display: block;
}

.hotkey-follow-up-requirement strong {
  color: var(--site-gold-strong);
  font-size: 0.9rem;
}

.hotkey-follow-up-requirement span {
  margin-top: 0.25rem;
  color: var(--hotkey-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.hotkey-remove-follow-up,
.hotkey-add-follow-up {
  min-height: 2.75rem;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-sm);
  color: var(--site-gold);
  background: rgba(2, 7, 15, 0.38);
  font-weight: 850;
}

.hotkey-remove-follow-up {
  padding: 0.55rem 0.75rem;
}

.hotkey-add-follow-up {
  display: block;
  min-width: min(100%, 220px);
  margin: 0.85rem auto 0;
  padding: 0.55rem 0.9rem;
}

.hotkey-add-follow-up span {
  display: inline;
  margin-right: 0.25rem;
  color: var(--site-gold-strong);
}

.hotkey-remove-follow-up:hover:not(:disabled),
.hotkey-remove-follow-up:focus-visible:not(:disabled),
.hotkey-add-follow-up:hover:not(:disabled),
.hotkey-add-follow-up:focus-visible:not(:disabled) {
  border-color: var(--site-border-strong);
  color: var(--site-gold-strong);
  background: var(--hotkey-field-hover);
}

.hotkey-compound-rule {
  margin: 0.55rem 0 0;
  color: var(--hotkey-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
}

.hotkey-advanced {
  margin-top: 1.4rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--hotkey-divider);
}

.hotkey-builder summary {
  padding: 0.65rem 0;
  color: var(--site-gold);
  font-weight: 850;
}

.hotkey-advanced-body {
  padding: 0.4rem 0 0.5rem;
}

.hotkey-target-details {
  margin-top: 0.45rem;
}

.hotkey-target-details p,
.hotkey-target-details .hotkey-member-list {
  color: var(--hotkey-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.hotkey-member-list {
  max-height: 180px;
  overflow: auto;
}

.hotkey-member-list div {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(213, 177, 101, 0.14);
}

.hotkey-evidence-callout {
  margin: 1rem 0;
  padding: 0.75rem 0.85rem;
  border-left: 2px solid var(--site-gold);
  background: rgba(20, 39, 62, 0.54);
}

.hotkey-evidence-callout strong,
.hotkey-evidence-callout p {
  display: block;
  margin: 0;
}

.hotkey-evidence-callout strong {
  margin-bottom: 0.22rem;
  color: var(--site-gold-strong);
}

.hotkey-evidence-callout p {
  color: var(--hotkey-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.hotkey-code-label {
  color: var(--hotkey-soft);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hotkey-single-code,
.hotkey-output {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-sm);
  color: var(--hotkey-copy);
  background: var(--hotkey-field);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre;
  overflow: auto;
}

.hotkey-single-code {
  min-height: 4.5rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.85rem;
  font-size: 0.78rem;
  line-height: 1.55;
}

.hotkey-add-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1.15rem;
}

.hotkey-add-row .hotkey-button {
  min-width: min(100%, 280px);
}

.hotkey-error {
  margin: 0.65rem 0 0;
  color: #ffd0c2;
  font-size: 0.9rem;
  text-align: right;
}

.hotkey-button {
  min-height: 2.72rem;
  padding: 0.66rem 0.95rem;
  border: 1px solid var(--site-border-strong);
  border-radius: var(--site-radius-sm);
  color: var(--hotkey-copy);
  background: rgba(15, 27, 47, 0.92);
  font-weight: 850;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.hotkey-button:hover:not(:disabled),
.hotkey-button:focus-visible:not(:disabled) {
  border-color: var(--site-gold-strong);
  box-shadow: 0 0 24px rgba(225, 173, 76, 0.18);
  transform: translateY(-1px);
}

.hotkey-button-primary {
  border-color: #e5bd65;
  color: #111822;
  background: linear-gradient(180deg, #f4d990, #c8953f);
  text-shadow: 0 1px rgba(255, 255, 255, 0.35);
}

.hotkey-button-primary:hover:not(:disabled),
.hotkey-button-primary:focus-visible:not(:disabled) {
  background: linear-gradient(180deg, #fff0bc, #dfb35e);
}

.hotkey-text-button,
.hotkey-binding-buttons button {
  padding: 0.38rem 0.25rem;
  border: 0;
  color: var(--site-gold);
  background: transparent;
  font-weight: 850;
}

.hotkey-text-button:hover,
.hotkey-text-button:focus-visible,
.hotkey-binding-buttons button:hover,
.hotkey-binding-buttons button:focus-visible {
  color: var(--site-gold-strong);
}

.hotkey-bindings {
  display: grid;
  gap: 0.2rem;
}

.hotkey-empty-state {
  padding: 1.35rem 0;
  color: var(--hotkey-muted);
}

.hotkey-empty-state strong,
.hotkey-empty-state span {
  display: block;
}

.hotkey-empty-state strong {
  color: var(--site-gold-strong);
  font-family: var(--site-font-title);
  font-size: 1.15rem;
  text-transform: uppercase;
}

.hotkey-empty-state span {
  margin-top: 0.25rem;
}

.hotkey-binding {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hotkey-divider);
}

.hotkey-binding:last-child {
  border-bottom: 0;
}

.hotkey-binding-copy {
  min-width: 0;
}

.hotkey-binding-copy strong,
.hotkey-binding-copy span {
  display: block;
  overflow-wrap: anywhere;
}

.hotkey-binding-copy strong {
  color: var(--hotkey-copy);
  font-size: 1rem;
}

.hotkey-binding-copy span {
  margin-top: 0.22rem;
  color: var(--hotkey-muted);
  font-size: 0.84rem;
}

.hotkey-binding-buttons {
  display: flex;
  gap: 0.55rem;
}

.hotkey-keycap {
  display: inline-flex;
  width: fit-content;
  padding: 0.34rem 0.58rem;
  border: 1px solid var(--site-border-strong);
  border-bottom-width: 2px;
  border-radius: var(--site-radius-sm);
  color: var(--site-gold-strong);
  background: rgba(31, 48, 69, 0.9);
  font: 0.76rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.hotkey-binding-conflicts {
  width: fit-content;
  margin-top: 0.35rem;
}

.hotkey-binding-conflicts summary {
  display: inline-flex;
  gap: 0.38rem;
  align-items: center;
  padding: 0.2rem 0;
  color: var(--hotkey-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.hotkey-binding-conflicts summary::-webkit-details-marker {
  display: none;
}

.hotkey-binding-conflicts summary img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.hotkey-binding-copy .hotkey-binding-conflicts summary span {
  display: inline;
  margin: 0;
  font-size: inherit;
}

.hotkey-binding-conflicts ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.4rem 0 0;
  padding: 0.6rem 0.7rem;
  border-left: 2px solid var(--site-gold);
  background: rgba(2, 7, 15, 0.4);
  list-style: none;
}

.hotkey-binding-conflicts li strong,
.hotkey-binding-conflicts li span {
  display: block;
}

.hotkey-binding-conflicts li strong {
  color: var(--site-gold-strong);
  font-size: 0.8rem;
}

.hotkey-binding-conflicts li span {
  color: var(--hotkey-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.hotkey-import-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.hotkey-import-card {
  min-width: 0;
  padding: 0.2rem 0;
}

.hotkey-import-card + .hotkey-import-card {
  padding-left: 1.35rem;
  border-left: 1px solid var(--hotkey-divider);
}

.hotkey-import-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: baseline;
  margin-bottom: 0.7rem;
}

.hotkey-import-card > div:first-child strong {
  color: var(--site-gold-strong);
  font-size: 1rem;
}

.hotkey-import-card > div:first-child span {
  color: var(--hotkey-muted);
  font-size: 0.82rem;
}

.hotkey-file-button {
  display: inline-flex;
  position: relative;
  max-width: 100%;
  align-items: center;
  overflow: hidden;
}

.hotkey-file-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.hotkey-file-button:focus-within {
  outline: 2px solid var(--site-gold-strong);
  outline-offset: 3px;
}

.hotkey-import-details {
  margin: -0.4rem 0 0.35rem;
}

.hotkey-import-details summary {
  padding: 0.35rem 0;
  font-size: 0.82rem;
}

.hotkey-import-details p {
  margin: 0.25rem 0 0.5rem;
  color: var(--hotkey-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hotkey-privacy {
  margin: 1rem 0 0;
  color: var(--hotkey-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.hotkey-export-top {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
}

.hotkey-export-summary {
  margin: 0.45rem 0 0;
  color: var(--hotkey-copy);
  font-size: 1rem;
  font-weight: 750;
}

.hotkey-export-actions,
.hotkey-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hotkey-export-actions .hotkey-button {
  min-width: 130px;
}

.hotkey-output-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.75fr);
  gap: 1.5rem;
  margin-top: 1.2rem;
}

.hotkey-output-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.hotkey-output-tabs .selected {
  color: var(--site-gold-strong);
  box-shadow: inset 0 -1px var(--site-gold);
}

.hotkey-output {
  width: 100%;
  min-height: 230px;
  max-height: 430px;
  margin: 0;
  padding: 1rem;
  font-size: 0.8rem;
  line-height: 1.65;
}

.hotkey-checks {
  min-width: 0;
  padding-top: 0.4rem;
}

.hotkey-checks ul {
  margin: 0.55rem 0 0.95rem;
  padding-left: 1.2rem;
  color: var(--hotkey-muted);
  font-size: 0.88rem;
}

.hotkey-checks li {
  margin-bottom: 0.48rem;
  overflow-wrap: anywhere;
}

.hotkey-install {
  margin-top: 1.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--hotkey-divider);
}

.hotkey-install p {
  max-width: 980px;
  color: var(--hotkey-muted);
  line-height: 1.6;
}

.hotkey-conflict-modal {
  width: min(680px, calc(100vw - 2rem));
  max-height: min(760px, calc(100vh - 2rem));
  padding: clamp(1.1rem, 3vw, 1.8rem);
  overflow: auto;
  border: 1px solid var(--site-border-strong);
  border-radius: var(--site-radius-md);
  background: linear-gradient(180deg, rgba(21, 35, 57, 0.99), rgba(6, 11, 21, 0.99));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.78);
}

.hotkey-help-modal {
  width: min(880px, calc(100vw - 2rem));
  height: min(820px, calc(100vh - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--site-border-strong);
  border-radius: var(--site-radius-md);
  background: linear-gradient(180deg, rgba(21, 35, 57, 0.995), rgba(6, 11, 21, 0.995));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.78);
}

.hotkey-help-modal-shell {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.hotkey-help-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.15rem clamp(1rem, 3vw, 1.7rem);
  border-bottom: 1px solid var(--hotkey-divider);
  background: rgba(8, 15, 27, 0.94);
}

.hotkey-help-modal-head .site-kicker {
  margin: 0 0 0.35rem;
}

.hotkey-help-modal h2 {
  margin: 0;
  color: var(--site-gold-strong);
  font-family: var(--site-font-title);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: 0.025em;
  line-height: 1.15;
  text-transform: uppercase;
}

.hotkey-help-close {
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--site-border-strong);
  border-radius: var(--site-radius-sm);
  color: var(--site-gold-strong);
  background: rgba(15, 27, 47, 0.92);
  font-weight: 850;
}

.hotkey-help-modal-body {
  min-height: 0;
  padding: 0 clamp(1rem, 3vw, 1.7rem) 1.4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #9a7840 transparent;
  scrollbar-width: thin;
}

.hotkey-help-modal-body section {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--hotkey-divider);
}

.hotkey-help-modal-body section:first-child {
  padding-top: 1.35rem;
}

.hotkey-help-modal-body h3,
.hotkey-help-modal-body h4 {
  margin: 0 0 0.6rem;
  color: var(--site-gold-strong);
  font-family: var(--site-font-title);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.hotkey-help-modal-body h3 {
  font-size: 1.12rem;
}

.hotkey-help-modal-body h4 {
  margin-top: 0.9rem;
  font-size: 0.88rem;
}

.hotkey-help-modal-body p,
.hotkey-help-modal-body li,
.hotkey-help-modal-body dd {
  color: var(--hotkey-muted);
  line-height: 1.58;
}

.hotkey-help-modal-body p {
  margin: 0.55rem 0 0;
}

.hotkey-help-modal-body ul,
.hotkey-help-modal-body ol {
  margin: 0.65rem 0 0;
  padding-left: 1.25rem;
}

.hotkey-help-modal-body li + li {
  margin-top: 0.38rem;
}

.hotkey-help-modal-body strong,
.hotkey-help-modal-body code {
  color: var(--site-gold-strong);
}

.hotkey-help-modal-body pre {
  max-width: 100%;
  margin: 0.75rem 0 0;
  padding: 0.8rem;
  overflow-x: auto;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-sm);
  color: var(--hotkey-copy);
  background: var(--hotkey-field);
  font: 0.82rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.hotkey-help-example {
  display: grid;
  width: min(100%, 420px);
  gap: 0.4rem;
  justify-items: center;
  margin: 0.85rem auto;
  padding: 0.9rem;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-sm);
  background: rgba(2, 7, 15, 0.4);
  text-align: center;
}

.hotkey-help-example span {
  color: var(--site-gold);
}

.hotkey-help-examples {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0 0;
}

.hotkey-help-examples div {
  display: grid;
  grid-template-columns: minmax(110px, 0.3fr) minmax(0, 1fr);
  gap: 0.8rem;
}

.hotkey-help-examples dt {
  color: var(--site-gold-strong);
  font-weight: 850;
}

.hotkey-help-examples dd {
  margin: 0;
}

.hotkey-help-modal-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 1.2rem;
}

.hotkey-conflict-modal::backdrop,
.hotkey-help-modal::backdrop {
  background: rgba(1, 3, 8, 0.82);
  backdrop-filter: blur(5px);
}

.hotkey-modal-head .site-kicker {
  margin: 0 0 0.45rem;
}

.hotkey-modal-copy {
  color: var(--hotkey-copy);
  line-height: 1.6;
}

.hotkey-conflict-list {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}

.hotkey-conflict-item {
  padding: 0.75rem 0.85rem;
  border-left: 2px solid var(--site-gold);
  background: rgba(2, 7, 15, 0.58);
}

.hotkey-conflict-item strong,
.hotkey-conflict-item p {
  display: block;
  margin: 0;
}

.hotkey-conflict-item strong {
  margin-bottom: 0.25rem;
  color: var(--site-gold-strong);
}

.hotkey-conflict-item p {
  color: var(--hotkey-muted);
  font-size: 0.86rem;
  line-height: 1.48;
}

.hotkey-modal-actions {
  justify-content: flex-end;
  margin-top: 1.1rem;
}

/* Shared Lobby Browser / Match ID copy feedback pattern. */
.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9005;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  padding: 9px 13px;
  border: 1px solid rgba(214, 168, 79, 0.4);
  border-radius: 10px;
  background: rgba(7, 11, 18, 0.96);
  color: var(--site-gold-strong);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
  transition: opacity 140ms ease, transform 140ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hotkey-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hotkey-config-grid,
  .hotkey-output-layout {
    grid-template-columns: 1fr;
  }

  .hotkey-action-column {
    padding-top: 1.25rem;
    border-top: 1px solid var(--hotkey-divider);
  }

  .hotkey-follow-up-controls {
    grid-template-columns: 1fr;
  }

  .hotkey-follow-up-requirement {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.7rem;
    padding: 0.7rem 0 0;
    border-top: 1px solid var(--hotkey-divider);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .hotkey-hero-body {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .hotkey-privacy-note {
    padding: 1rem 0 0;
    border-top: 1px solid var(--site-border);
    border-left: 0;
  }

  .hotkey-panel-in {
    padding: 1.1rem;
  }

  .hotkey-category-grid,
  .hotkey-import-stack {
    grid-template-columns: 1fr;
  }

  .hotkey-category {
    min-height: 78px;
  }

  .hotkey-category img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .hotkey-import-card + .hotkey-import-card {
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--hotkey-divider);
    border-left: 0;
  }

  .hotkey-keyboard-heading,
  .hotkey-export-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .hotkey-key-controls {
    flex-wrap: wrap;
  }

  .hotkey-key-controls select {
    flex-basis: 100%;
  }

  .hotkey-export-actions,
  .hotkey-modal-actions {
    width: 100%;
  }

  .hotkey-export-actions .hotkey-button,
  .hotkey-modal-actions .hotkey-button {
    flex: 1 1 100%;
  }

  .hotkey-binding {
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
  }

  .hotkey-binding-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hotkey-add-row {
    align-items: stretch;
  }

  .hotkey-add-row .hotkey-button {
    min-width: 0;
    flex: 1;
  }

  .hotkey-help-modal {
    width: calc(100vw - 1rem);
    height: calc(100vh - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .hotkey-help-modal-head {
    padding: 1rem;
  }

  .hotkey-help-modal-body {
    padding: 0 1rem 1rem;
  }

  .hotkey-help-examples div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (max-width: 520px) {
  .hotkey-builder {
    width: calc(100% - 1rem);
  }

  .hotkey-panel-heading h2,
  .hotkey-export-top h2 {
    font-size: 1.2rem;
  }

  .hotkey-target-kind-wrap,
  .hotkey-import-card > div:first-child {
    grid-template-columns: 1fr;
  }

  .hotkey-target-kind-wrap {
    display: grid;
  }

  .hotkey-import-card > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .hotkey-mod-toggle {
    min-width: 0;
    flex: 1;
  }

  .hotkey-help-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hotkey-help-trigger {
    width: 2.75rem;
    min-height: 2.75rem;
    justify-content: center;
    padding: 0;
  }

  .copy-toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hotkey-category,
  .hotkey-button,
  .copy-toast {
    transition: none;
  }

  .hotkey-category:hover,
  .hotkey-button:hover:not(:disabled),
  .hotkey-button:focus-visible:not(:disabled) {
    transform: none;
  }
}
