.jf-root {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .jf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .jf-status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #f1f5f9;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .jf-badge {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.2s, box-shadow 0.2s;
  }

  .jf-status-text {
    transition: color 0.2s;
  }

  .jf-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .jf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    line-height: 1;
  }

  .jf-btn-muted {
    color: #475569;
    background: transparent;
  }

  .jf-btn-muted:hover {
    background: #f1f5f9;
  }

  .jf-btn-amber {
    color: #d97706;
    background: transparent;
  }

  .jf-btn-amber:hover {
    background: #fef3c7;
  }

  .jf-btn-emerald {
    color: #fff;
    background: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
    font-weight: 700;
    padding-inline: 1.5rem;
  }

  .jf-btn-emerald:hover {
    background: #059669;
  }

  .jf-btn-emerald:active {
    transform: scale(0.96);
  }

  .jf-divider {
    width: 1px;
    height: 2rem;
    background: #e2e8f0;
    margin-inline: 0.5rem;
  }

  .jf-grid {
    display: grid;
    gap: 1.5rem;
  }

  @media (min-width: 1024px) {
    .jf-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  .jf-panel {
    position: relative;
    height: 600px;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    background: #fff;
  }

  .jf-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    flex-shrink: 0;
  }

  .jf-size-info {
    color: #94a3b8;
  }

  .jf-textarea {
    flex: 1;
    width: 100%;
    padding: 1rem;
    background: transparent;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #334155;
    resize: none;
    border: none;
    outline: none;
  }

  .jf-textarea::placeholder {
    color: #cbd5e1;
  }

  .jf-output {
    flex: 1;
    min-height: 0;
    padding: 1rem;
    overflow: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #334155;
    background: #f8fafc;
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    outline: none;
  }

  .jf-output:focus {
    box-shadow: inset 0 0 0 2px rgba(168, 85, 247, 0.3);
  }

  .jf-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.5rem 1rem;
    background: #0f172a;
    color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
    transform: translateY(5rem);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
    z-index: 50;
  }

  .theme-dark .jf-toolbar {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .theme-dark .jf-status-pill {
    background: #1e293b;
  }

  .theme-dark .jf-btn-muted {
    color: #cbd5e1;
  }

  .theme-dark .jf-btn-muted:hover {
    background: #1e293b;
  }

  .theme-dark .jf-btn-amber {
    color: #fbbf24;
  }

  .theme-dark .jf-btn-amber:hover {
    background: rgba(251, 191, 36, 0.1);
  }

  .theme-dark .jf-divider {
    background: #334155;
  }

  .theme-dark .jf-panel {
    background: #0f172a;
    border-color: #1e293b;
  }

  .theme-dark .jf-panel-header {
    background: rgba(30, 41, 59, 0.5);
    border-color: #1e293b;
  }

  .theme-dark .jf-textarea {
    color: #cbd5e1;
  }

  .theme-dark .jf-textarea::placeholder {
    color: #334155;
  }

  .theme-dark .jf-output {
    background: #0d1117;
    color: #cbd5e1;
  }

  .theme-dark .jf-toast {
    background: #f8fafc;
    color: #0f172a;
  }

  .jf-badge-empty {
    background: #94a3b8;
  }

  .jf-badge-valid {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  }

  .jf-badge-invalid {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  }

  .jf-text-empty {
    color: #64748b;
  }

  .jf-text-valid {
    color: #10b981;
    font-weight: 600;
  }

  .theme-dark .jf-text-valid {
    color: #34d399;
  }

  .jf-text-invalid {
    color: #ef4444;
    font-weight: 600;
  }

  .theme-dark .jf-text-invalid {
    color: #f87171;
  }

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

  .jf-token-key {
    color: #7c3aed;
  }

  .theme-dark .jf-token-key {
    color: #a78bfa;
  }

  .jf-token-string {
    color: #16a34a;
  }

  .theme-dark .jf-token-string {
    color: #4ade80;
  }

  .jf-token-number {
    color: #c2410c;
  }

  .theme-dark .jf-token-number {
    color: #fb923c;
  }

  .jf-token-boolean {
    color: #1d4ed8;
  }

  .theme-dark .jf-token-boolean {
    color: #60a5fa;
  }

  .jf-token-null {
    color: #dc2626;
  }

  .theme-dark .jf-token-null {
    color: #f87171;
  }

  .jf-token-error {
    color: #ef4444;
  }