:root {
  font-family: var(--font-family-sans, Inter, system-ui, sans-serif);
  background: var(--background-base);
  color: var(--text-base);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background:
    radial-gradient(
      circle at top left,
      color-mix(in srgb, var(--surface-brand-base) 18%, transparent),
      transparent 28rem
    ),
    var(--background-base);
}

.kilo-console input,
.kilo-console select,
.kilo-console textarea {
  width: 100%;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  background: var(--input-base);
  color: var(--text-strong);
  font: inherit;
  padding: 0.65rem 0.75rem;
}

.kilo-console textarea {
  min-height: 10rem;
  resize: vertical;
}

.kilo-console select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23a1a1aa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.kilo-console select option {
  background: var(--popover);
  color: var(--popover-foreground);
}

.kilo-console select option:checked {
  background: var(--primary);
  color: var(--primary-foreground);
}

.kilo-console input:focus,
.kilo-console select:focus,
.kilo-console textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--border-focus) 35%, transparent);
  border-color: var(--border-focus);
}

.kilo-console [data-component="search-field"][data-label="hidden"] [data-slot="search-label"] {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.kilo-console [data-component="search-field"][data-variant="list"] {
  display: block;
  margin-bottom: 0.75rem;
}

.kilo-console [data-component="search-field"][data-variant="list"] input {
  height: 2rem;
  min-height: 2rem;
  border-color: var(--border);
  border-radius: var(--radius-md);
  background: var(--input-base);
  color: var(--foreground);
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 0 0.5rem;
}

.kilo-console [data-component="search-field"][data-variant="list"] input::placeholder {
  color: var(--muted-foreground);
}

.kilo-console .inherited {
  opacity: 0.72;
}

.kilo-console .empty {
  margin: 0;
  color: var(--muted-foreground);
}

.kilo-console .warning {
  margin: 0;
  color: var(--text-on-warning-base, var(--text-strong));
}

.kilo-console .eyebrow {
  margin: 0 0 0.75rem !important;
  color: var(--text-interactive-base) !important;
  font-size: var(--font-size-small) !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kilo-console .banner {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
  background: var(--card);
  padding: 1rem;
}

.kilo-console .banner strong {
  color: var(--foreground);
}

.kilo-console .tags {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kilo-console .eyebrow,
.kilo-console .empty {
  color: var(--muted-foreground);
}
