.rl-root {
    margin-top: 1rem;
    padding-bottom: 4rem;
  }

  .rl-tool-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  @media (min-width: 1024px) {
    .rl-tool-content {
      grid-template-columns: 1fr 1fr;
      align-items: start;
    }
  }

  .rl-form-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .theme-dark .rl-form-container {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }

  .rl-form-container:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }

  .rl-form-group {
    margin-bottom: 1.5rem;
  }

  .rl-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #64748b;
  }

  .theme-dark .rl-form-group label {
    color: #94a3b8;
  }

  .rl-form-container input,
  .rl-form-container select {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 0.875rem 1.125rem;
    font-size: 1rem;
    color: #0f172a;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    cursor: text;
    appearance: none;
  }

  .rl-form-container select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.75rem;
  }

  .theme-dark .rl-form-container input,
  .theme-dark .rl-form-container select {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
  }

  .rl-form-container input:hover,
  .rl-form-container select:hover {
    border-color: #cbd5e1;
  }

  .theme-dark .rl-form-container input:hover,
  .theme-dark .rl-form-container select:hover {
    border-color: #475569;
  }

  .rl-form-container input:focus,
  .rl-form-container select:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  }

  .theme-dark .rl-form-container input:focus,
  .theme-dark .rl-form-container select:focus {
    background: #020617;
    border-color: #818cf8;
  }

  .rl-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
  }

  .rl-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
  }

  .rl-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
  }

  .rl-btn-primary {
    background: #6366f1;
    color: #fff;
  }

  .rl-btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  }

  .rl-btn-primary:active {
    transform: translateY(0);
  }

  .rl-btn-secondary {
    background: #f1f5f9;
    color: #475569;
  }

  .theme-dark .rl-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
  }

  .rl-btn-secondary:hover {
    background: #e2e8f0;
  }

  .theme-dark .rl-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .rl-preview-container {
    position: relative;
    background: #f1f5f9;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    color: #1e293b;
    min-height: 50rem;
    display: flex;
    justify-content: center;
    border: 1px solid #e2e8f0;
  }

  .theme-dark .rl-preview-container {
    background: #0f172a;
    border-color: #1e293b;
  }

  .rl-copy-feedback {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
  }

  .rl-copy-feedback.rl-show {
    opacity: 1;
    transform: translateY(0);
  }

  .rl-letter-content {
    background: #fff;
    width: 100%;
    max-width: 50rem;
    padding: 4rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    line-height: 1.8;
    color: #334155;
    font-size: 1.1rem;
    height: fit-content;
  }

  .rl-letter-header {
    margin-bottom: 3rem;
  }

  .rl-date-line {
    font-weight: 700;
  }

  .rl-to-block {
    margin-top: 2rem;
  }

  .rl-company-name {
    font-weight: 700;
    font-size: 1.25rem;
  }

  .rl-letter-body-section {
    margin-bottom: 3rem;
  }

  .rl-salutation-line {
    font-weight: 600;
  }

  .rl-para {
    margin-top: 1.5rem;
  }

  .rl-letter-footer {
    margin-top: 4rem;
  }

  .rl-signature {
    margin-top: 2.5rem;
    font-weight: 700;
    border-top: 2px solid #e2e8f0;
    padding-top: 0.5rem;
    display: inline-block;
    min-width: 12rem;
  }