.kc-root {
    --kc-primary: #7c3aed;
    --kc-primary-light: #8b5cf6;
    --kc-success: #10b981;
    --kc-card-bg: #fff;
    --kc-bg: #f8fafc;
    --kc-text: #0f172a;
    --kc-text-muted: #64748b;
    --kc-border: #e2e8f0;
    --kc-key-border: #cbd5e1;

    max-width: 56rem;
    margin: 2rem auto;
    color: var(--kc-text);
  }

  .theme-dark .kc-root {
    --kc-card-bg: #1e293b;
    --kc-bg: #0f172a;
    --kc-text: #f1f5f9;
    --kc-text-muted: #94a3b8;
    --kc-border: #334155;
    --kc-key-border: #0f172a;
  }

  .kc-outer-card {
    background: var(--kc-card-bg);
    border: 1px solid var(--kc-border);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 2rem;
  }

  .kc-initial {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .kc-kbd-wrap {
    width: 8rem;
    height: 8rem;
    background: var(--kc-bg);
    border-radius: 1.5rem;
    border: 1px solid var(--kc-border);
    border-bottom: 8px solid var(--kc-border);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .kc-kbd-icon {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--kc-text-muted);
  }

  .kc-prompt {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .kc-prompt-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--kc-text);
    margin: 0;
    letter-spacing: -0.02em;
  }

  .kc-prompt-sub {
    font-size: 1rem;
    color: var(--kc-text-muted);
    margin: 0;
  }

  .kc-dots {
    display: flex;
    gap: 0.5rem;
    opacity: 0.4;
  }

  @keyframes kc-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  .kc-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--kc-border);
    animation: kc-bounce 1s ease infinite;
  }

  .kc-active {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .kc-key-outer {
    display: flex;
    justify-content: center;
  }

  .kc-key-display {
    min-width: 12rem;
    min-height: 12rem;
    padding: 2rem 3rem;
    background: var(--kc-bg);
    border-radius: 1.5rem;
    border: 1px solid var(--kc-border);
    border-bottom: 12px solid var(--kc-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.1s, border-bottom-width 0.1s, box-shadow 0.1s;
  }

  .kc-key-char {
    font-size: 5rem;
    font-weight: 900;
    color: var(--kc-text);
    line-height: 1;
    text-align: center;
    max-width: 20rem;
    overflow-wrap: break-word;
  }

  .kc-key-code {
    font-size: 0.8rem;
    color: var(--kc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  .kc-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  @media (max-width: 640px) {
    .kc-info-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .kc-info-card {
    background: var(--kc-bg);
    border: 1px solid var(--kc-border);
    border-radius: 1rem;
    padding: 1rem 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: 8rem;
    justify-content: space-between;
    transition: border-color 0.15s;
  }

  .kc-info-card:hover {
    border-color: var(--kc-primary-light);
  }

  .kc-info-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--kc-text-muted);
    font-weight: 600;
  }

  .kc-info-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--kc-primary-light);
    text-align: center;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .kc-copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 0.375rem;
    color: var(--kc-text-muted);
    display: flex;
    align-items: center;
    transition: background 0.15s, color 0.15s;
  }

  .kc-copy-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--kc-primary-light);
  }

  .kc-mods-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .kc-mod-key {
    padding: 0.625rem 1.5rem;
    border: 2px solid var(--kc-border);
    border-radius: 0.75rem;
    color: var(--kc-text-muted);
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
  }

  .kc-snippets-section {
    border-top: 1px solid var(--kc-border);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .kc-snippets-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--kc-text-muted);
    margin: 0;
    text-align: center;
    font-weight: 700;
  }

  .kc-snippets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
  }

  @media (max-width: 520px) {
    .kc-snippets-grid {
      grid-template-columns: 1fr;
    }
  }

  .kc-snippet-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: var(--kc-card-bg);
    border: 1px solid var(--kc-border);
    border-radius: 0.875rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
  }

  .kc-snippet-btn:hover {
    border-color: var(--kc-primary-light);
  }

  .kc-snippet-code {
    font-size: 0.8rem;
    color: var(--kc-text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .kc-snippet-copy {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--kc-primary-light);
    opacity: 0;
    transition: opacity 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .kc-snippet-btn:hover .kc-snippet-copy {
    opacity: 1;
  }