.kilo-console .keybinds,
.kilo-console .keybind-group,
.kilo-console .keybind-rows {
  display: grid;
  gap: 0.5rem;
}

.kilo-console .keybind-group [data-component="section-title"] {
  margin: 0.75rem 0 0.25rem;
}

.kilo-console .keybinds [data-component="config-row"] {
  align-items: flex-start;
}

.kilo-console .keybinds [data-slot="config-row-subtitle"] {
  overflow: visible;
  white-space: normal;
}

.kilo-console .keybind-subtitle {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.kilo-console .keybind-id,
.kilo-console .keybind-binding,
.kilo-console .keybind-command-card code,
.kilo-console .keybind-default-card code {
  font-family: var(--font-family-mono);
}

.kilo-console .keybind-id {
  overflow: hidden;
  color: var(--muted-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kilo-console .keybind-description {
  overflow-wrap: anywhere;
  white-space: normal;
}

.kilo-console .keybind-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.kilo-console .keybind-binding {
  display: inline-flex;
  align-items: center;
  max-width: 18rem;
  min-height: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border-weak-base);
  border-radius: var(--radius-md);
  background: var(--surface-base);
  color: var(--foreground);
  font-size: 0.6875rem;
  line-height: 1rem;
  padding: 0.1875rem 0.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kilo-console .keybind-binding[data-empty="true"] {
  color: var(--muted-foreground);
}

.kilo-console .keybind-drawer {
  width: min(38rem, calc(100vw - var(--app-rail-width)));
}

.kilo-console .keybind-form {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  padding: 1rem;
}

.kilo-console .keybind-form .wide {
  grid-column: 1;
}

.kilo-console .keybind-command-card,
.kilo-console .keybind-default-card {
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--border-weak-base);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 0.75rem;
}

.kilo-console .keybind-command-card span,
.kilo-console .keybind-default-card span {
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  line-height: 1.35;
}

.kilo-console .keybind-command-card p {
  margin: 0;
  color: var(--foreground);
  font-size: 0.75rem;
  line-height: 1.45;
}

.kilo-console .keybind-command-card code,
.kilo-console .keybind-default-card code {
  overflow-wrap: anywhere;
  color: var(--foreground);
  font-size: 0.75rem;
  line-height: 1.45;
}

.kilo-console .keybind-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.kilo-console .keybind-input-row input,
.kilo-console .keybind-input-row [data-component="button"] {
  height: 2.35rem;
  min-height: 2.35rem;
}

.kilo-console .keybind-input-row [data-component="button"] {
  white-space: nowrap;
}

.kilo-console .keybind-help,
.kilo-console .keybind-warning {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
}

.kilo-console .keybind-help {
  color: var(--muted-foreground);
}

.kilo-console .keybind-warning {
  border: 1px solid color-mix(in srgb, var(--warning) 45%, var(--border));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--warning) 12%, var(--card));
  color: var(--foreground);
  padding: 0.75rem;
}

.kilo-console .keybind-footer {
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .kilo-console .keybind-input-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
